file caption optimization

Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
This commit is contained in:
Julius Linus 2023-11-17 09:52:15 -06:00 committed by rapterjet2004
parent f6f9f35901
commit 9c71011346

View File

@ -40,6 +40,20 @@
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:contentDescription="@string/avatar" /> android:contentDescription="@string/avatar" />
<androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toEndOf="@id/messageUserAvatar"
android:layout_marginBottom="4dp"
android:alpha="0.6"
android:textAlignment="viewStart"
android:textColor="@color/no_emphasis_text"
android:textIsSelectable="false"
android:textSize="12sp"
tools:ignore="TextContrastCheck"
tools:text="Jane Doe" />
<com.google.android.flexbox.FlexboxLayout <com.google.android.flexbox.FlexboxLayout
android:id="@+id/incoming_preview_message_bubble" android:id="@+id/incoming_preview_message_bubble"
android:layout_width="wrap_content" android:layout_width="wrap_content"
@ -47,25 +61,13 @@
android:layout_marginTop="8dp" android:layout_marginTop="8dp"
android:layout_marginBottom="8dp" android:layout_marginBottom="8dp"
android:layout_toEndOf="@id/messageUserAvatar" android:layout_toEndOf="@id/messageUserAvatar"
android:layout_below="@id/messageAuthor"
android:orientation="vertical" android:orientation="vertical"
app:alignContent="stretch" app:alignContent="stretch"
app:alignItems="stretch" app:alignItems="stretch"
app:flexWrap="wrap" app:flexWrap="wrap"
app:justifyContent="flex_end"> app:justifyContent="flex_end">
<androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="4dp"
android:alpha="0.6"
android:textAlignment="viewStart"
android:textColor="@color/no_emphasis_text"
android:textIsSelectable="false"
android:textSize="12sp"
tools:ignore="TextContrastCheck"
tools:text="Jane Doe" />
<FrameLayout <FrameLayout
android:id="@+id/preview_container" android:id="@+id/preview_container"
android:layout_width="wrap_content" android:layout_width="wrap_content"