From d9b9a7c3c13303e2f61b2cb557ab96ec1a23a7ac Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 20 Feb 2020 15:10:50 +0800 Subject: Add an option to show comment dividers. Put theme option to InterfacePreferenceFragment. --- app/src/main/res/layout/item_comment.xml | 396 ++++++++++----------- .../layout/item_load_more_comments_placeholder.xml | 39 +- app/src/main/res/values/strings.xml | 1 + app/src/main/res/xml/interface_preference.xml | 18 + app/src/main/res/xml/main_preferences.xml | 13 - 5 files changed, 243 insertions(+), 224 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 c303efaa..f80d6bfb 100644 --- a/app/src/main/res/layout/item_comment.xml +++ b/app/src/main/res/layout/item_comment.xml @@ -4,219 +4,219 @@ android:id="@+id/linear_layout_item_comment" android:layout_width="match_parent" android:layout_height="wrap_content" + android:orientation="vertical" android:background="?attr/cardViewBackgroundColor"> - - + android:layout_height="wrap_content"> - - - - - + - - - - - - - - - - - + android:layout_marginTop="12dp" + android:layout_marginBottom="12dp" + android:orientation="vertical"> - + android:paddingStart="16dp" + android:paddingEnd="16dp"> + + + + + + + + + + + + - - - - - - + + - - - - - - - - + android:paddingStart="4dp" + android:paddingEnd="4dp"> + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/item_load_more_comments_placeholder.xml b/app/src/main/res/layout/item_load_more_comments_placeholder.xml index 9d10a62b..099e4a9a 100644 --- a/app/src/main/res/layout/item_load_more_comments_placeholder.xml +++ b/app/src/main/res/layout/item_load_more_comments_placeholder.xml @@ -2,22 +2,35 @@ - + + + - + + + + + android:layout_height="1dp" + android:background="@color/dividerColor" /> \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 17975d8a..ebc48af0 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -308,6 +308,7 @@ Mute Video Confirm to Exit Show Top-level Comments First + Show comment divider Show Elapsed Time in Posts and Comments Default Post Layout Show Divider in Compact Layout diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index 626f1333..f3e1dabe 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -2,6 +2,19 @@ + + + + + + \ No newline at end of file diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index 550525ef..d95e675f 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -7,19 +7,6 @@ app:title="@string/settings_notification_master_title" app:fragment="ml.docilealligator.infinityforreddit.Settings.NotificationPreferenceFragment" /> - - - -