diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-07-18 13:56:39 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-07-18 13:56:39 +0000 |
commit | 685a39ba58fab82cc0486e49394a0f398bba8254 (patch) | |
tree | 0917aad044057f680147b6377e70757edf75415c /app/src/main/res/layout/item_post_text.xml | |
parent | 3a621e290190e67f777e4f442398a4db120aa7af (diff) | |
download | infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.tar infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.tar.gz infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.tar.bz2 infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.tar.lz infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.tar.xz infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.tar.zst infinity-for-reddit-685a39ba58fab82cc0486e49394a0f398bba8254.zip |
Fix UI issues in post and comment item. Fix Reddit gallery post cannot be opened in PostCompactLayout when clicking the imageview.
Diffstat (limited to 'app/src/main/res/layout/item_post_text.xml')
-rw-r--r-- | app/src/main/res/layout/item_post_text.xml | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/app/src/main/res/layout/item_post_text.xml b/app/src/main/res/layout/item_post_text.xml index c79fd6fc..e7d1867b 100644 --- a/app/src/main/res/layout/item_post_text.xml +++ b/app/src/main/res/layout/item_post_text.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:layout_marginTop="8dp" android:layout_marginBottom="8dp" android:id="@+id/card_view_item_post_text_type" @@ -31,7 +32,7 @@ <TextView android:id="@+id/subreddit_name_text_view_item_post_text_type" - android:layout_width="0dp" + android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="center" android:layout_marginStart="16dp" @@ -41,23 +42,24 @@ app:layout_constraintBottom_toTopOf="@id/user_text_view_item_post_text_type" app:layout_constraintStart_toEndOf="@id/icon_gif_image_view_item_post_text_type" app:layout_constraintEnd_toStartOf="@id/stickied_post_image_view_item_post_text_type" - app:layout_constraintTop_toTopOf="parent"/> + app:layout_constraintTop_toTopOf="parent" + app:layout_constrainedWidth="true" + app:layout_constraintHorizontal_bias="0" /> <TextView android:id="@+id/user_text_view_item_post_text_type" - 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_toBottomOf="parent" app:layout_constraintStart_toEndOf="@+id/icon_gif_image_view_item_post_text_type" app:layout_constraintEnd_toStartOf="@id/stickied_post_image_view_item_post_text_type" app:layout_constraintTop_toBottomOf="@+id/subreddit_name_text_view_item_post_text_type" - app:layout_constraintHorizontal_bias="0" /> + app:layout_constraintHorizontal_bias="0" + app:layout_constrainedWidth="true" /> <ImageView android:id="@+id/stickied_post_image_view_item_post_text_type" @@ -66,9 +68,9 @@ android:layout_marginEnd="8dp" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" - app:layout_constraintStart_toEndOf="@id/subreddit_name_text_view_item_post_text_type" app:layout_constraintEnd_toStartOf="@+id/guideline2" - app:layout_constraintTop_toTopOf="parent"/> + app:layout_constraintTop_toTopOf="parent" + tools:visibility="visible" /> <TextView android:id="@+id/post_time_text_view_item_post_text_type" |