diff options
Diffstat (limited to 'app/src/main/res/layout/item_post_detail_gallery.xml')
-rw-r--r-- | app/src/main/res/layout/item_post_detail_gallery.xml | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/app/src/main/res/layout/item_post_detail_gallery.xml b/app/src/main/res/layout/item_post_detail_gallery.xml index 8d2a9ce2..1de319c2 100644 --- a/app/src/main/res/layout/item_post_detail_gallery.xml +++ b/app/src/main/res/layout/item_post_detail_gallery.xml @@ -3,6 +3,7 @@ xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="match_parent" android:layout_height="wrap_content" + xmlns:tools="http://schemas.android.com/tools" android:orientation="vertical" android:background="?attr/cardViewBackgroundColor"> @@ -22,51 +23,49 @@ <TextView android:id="@+id/subreddit_text_view_item_post_detail_gallery" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="8dp" android:textSize="?attr/font_default" android:fontFamily="?attr/font_family" - android:maxLines="2" - android:ellipsize="end" app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" app:layout_constraintEnd_toStartOf="@id/guideline" app:layout_constraintTop_toTopOf="parent" - app:layout_constraintHorizontal_bias="0" /> + app:layout_constraintHorizontal_bias="0" + app:layout_constrainedWidth="true" /> <TextView android:id="@+id/user_text_view_item_post_detail_gallery" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="8dp" android:textSize="?attr/font_default" android:fontFamily="?attr/font_family" - android:maxLines="2" - android:ellipsize="end" app:layout_constraintBottom_toTopOf="@+id/author_flair_text_view_item_post_detail_gallery" app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" app:layout_constraintEnd_toStartOf="@id/guideline" app:layout_constraintTop_toBottomOf="@+id/subreddit_text_view_item_post_detail_gallery" - app:layout_constraintHorizontal_bias="0" /> + app:layout_constraintHorizontal_bias="0" + app:layout_constrainedWidth="true" /> <TextView android:id="@+id/author_flair_text_view_item_post_detail_gallery" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" android:layout_marginEnd="8dp" android:textSize="?attr/font_12" android:fontFamily="?attr/font_family" - android:maxLines="2" - android:ellipsize="end" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_gallery" app:layout_constraintEnd_toStartOf="@id/guideline" app:layout_constraintTop_toBottomOf="@+id/user_text_view_item_post_detail_gallery" - app:layout_constraintHorizontal_bias="0" /> + app:layout_constraintHorizontal_bias="0" + app:layout_constrainedWidth="true" + tools:visibility="visible" /> <TextView android:id="@+id/post_time_text_view_item_post_detail_gallery" |