Skip to content

Commit

Permalink
file caption optimization
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Nov 17, 2023
1 parent f6f9f35 commit 9c71011
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions app/src/main/res/layout/item_custom_incoming_preview_message.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,32 +40,34 @@
android:layout_marginEnd="6dp"
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
android:id="@+id/incoming_preview_message_bubble"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:layout_marginBottom="8dp"
android:layout_toEndOf="@id/messageUserAvatar"
android:layout_below="@id/messageAuthor"
android:orientation="vertical"
app:alignContent="stretch"
app:alignItems="stretch"
app:flexWrap="wrap"
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
android:id="@+id/preview_container"
android:layout_width="wrap_content"
Expand Down

0 comments on commit 9c71011

Please sign in to comment.