Merge pull request #3451 from nextcloud/file-caption-bugfix-1

File Caption Bug Fix - Bubble no longer under the user name
This commit is contained in:
Andy Scherzinger 2023-11-18 21:21:04 +01:00 committed by GitHub
commit e9c8559d61
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -40,23 +40,11 @@
android:layout_marginEnd="6dp" android:layout_marginEnd="6dp"
android:contentDescription="@string/avatar" /> android:contentDescription="@string/avatar" />
<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:orientation="vertical"
app:alignContent="stretch"
app:alignItems="stretch"
app:flexWrap="wrap"
app:justifyContent="flex_end">
<androidx.emoji2.widget.EmojiTextView <androidx.emoji2.widget.EmojiTextView
android:id="@+id/messageAuthor" android:id="@+id/messageAuthor"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_toEndOf="@id/messageUserAvatar"
android:layout_marginBottom="4dp" android:layout_marginBottom="4dp"
android:alpha="0.6" android:alpha="0.6"
android:textAlignment="viewStart" android:textAlignment="viewStart"
@ -66,6 +54,20 @@
tools:ignore="TextContrastCheck" tools:ignore="TextContrastCheck"
tools:text="Jane Doe" /> 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">
<FrameLayout <FrameLayout
android:id="@+id/preview_container" android:id="@+id/preview_container"
android:layout_width="wrap_content" android:layout_width="wrap_content"