From 2b92b48cb521fb5d3ec4e85d26b967b6de009cda Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Mon, 11 Nov 2019 11:42:04 +0800 Subject: Changing post layout in ViewSubredditDetailActivity is available. Tweak the compact post UI. Minor bugs fixed. --- app/src/main/res/layout/item_comment.xml | 2 +- app/src/main/res/layout/item_post_compact.xml | 37 +++++++++++++++++----- .../res/menu/view_subreddit_detail_activity.xml | 6 ++++ 3 files changed, 36 insertions(+), 9 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/item_comment.xml b/app/src/main/res/layout/item_comment.xml index ee85314e..faf11a07 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -58,7 +58,7 @@ android:ellipsize="end" android:maxLines="2" android:textColor="@color/authorFlairTextColor" - android:textSize="?attr/font_default" + android:textSize="?attr/font_12" android:visibility="gone" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@+id/barrier" diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index cdf3bd64..dc0f5876 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -13,7 +13,10 @@ + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="16dp" + android:paddingEnd="16dp"> @@ -275,7 +281,10 @@ android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" - android:padding="12dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" android:src="@drawable/ic_arrow_upward_grey_24dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toStartOf="parent" @@ -299,7 +308,10 @@ android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" - android:padding="12dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" android:src="@drawable/ic_arrow_downward_grey_24dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintStart_toEndOf="@id/score_text_view_item_post_compact" @@ -312,7 +324,10 @@ android:drawableStart="@drawable/ic_comment_grey_24dp" android:drawablePadding="12dp" android:gravity="center_vertical" - android:padding="12dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" android:textSize="?attr/font_12" android:textStyle="bold" app:layout_constraintBottom_toBottomOf="parent" @@ -326,7 +341,10 @@ android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" - android:padding="12dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toStartOf="@id/share_button_item_post_compact" app:layout_constraintHorizontal_bias="1" @@ -340,7 +358,10 @@ android:background="?actionBarItemBackground" android:clickable="true" android:focusable="true" - android:padding="12dp" + android:paddingTop="8dp" + android:paddingBottom="8dp" + android:paddingStart="12dp" + android:paddingEnd="12dp" android:src="@drawable/ic_share_grey_24dp" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" diff --git a/app/src/main/res/menu/view_subreddit_detail_activity.xml b/app/src/main/res/menu/view_subreddit_detail_activity.xml index 5893920a..c51b5b3a 100644 --- a/app/src/main/res/menu/view_subreddit_detail_activity.xml +++ b/app/src/main/res/menu/view_subreddit_detail_activity.xml @@ -28,4 +28,10 @@ android:orderInCategory="4" android:title="@string/action_start_lazy_mode" app:showAsAction="never" /> + + \ No newline at end of file -- cgit v1.2.3