From 2561ba8bd0bb64237da4a701b393e7a572d6f5f5 Mon Sep 17 00:00:00 2001 From: Balazs Toldi Date: Wed, 23 Aug 2023 21:39:08 +0200 Subject: [PATCH] Fix post layouts --- ...etail_video_autoplay_legacy_controller.xml | 280 ++++++++++-------- .../layout/item_post_video_type_autoplay.xml | 10 + ..._video_type_autoplay_legacy_controller.xml | 11 + .../res/layout/item_post_with_preview.xml | 10 + 4 files changed, 182 insertions(+), 129 deletions(-) diff --git a/app/src/main/res/layout/item_post_detail_video_autoplay_legacy_controller.xml b/app/src/main/res/layout/item_post_detail_video_autoplay_legacy_controller.xml index f4871633..e22630b6 100644 --- a/app/src/main/res/layout/item_post_detail_video_autoplay_legacy_controller.xml +++ b/app/src/main/res/layout/item_post_detail_video_autoplay_legacy_controller.xml @@ -26,67 +26,69 @@ android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_marginStart="16dp" - android:layout_marginEnd="8dp" - android:textSize="?attr/font_default" + android:maxWidth="170dp" + android:maxLines="1" + android:ellipsize="end" android:fontFamily="?attr/font_family" + android:textSize="?attr/font_default" + app:layout_constrainedWidth="true" app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_detail_video_autoplay" - app:layout_constraintEnd_toStartOf="@id/guideline" - app:layout_constraintTop_toTopOf="parent" - app:layout_constraintHorizontal_bias="0" - app:layout_constrainedWidth="true" /> + app:layout_constraintTop_toTopOf="parent" /> + + + app:layout_constraintTop_toBottomOf="@+id/subreddit_text_view_item_post_detail_video_autoplay" /> + + - - - - - - - - - - - - - + android:layout_height="match_parent"> - - - - - - - - + android:gravity="end" + android:textSize="?attr/font_default" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintTop_toTopOf="parent" /> - + + + + + + + + + + + + + + + + + + + + + +