From cb9154369070fe3773c16da0d4e7b3c33b716a1f Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Sat, 11 Jan 2020 10:39:49 +0800 Subject: Setting default post layout is now available. Add an option to hide the divider in post compact layout. --- app/src/main/res/layout/app_bar_main.xml | 4 ++-- app/src/main/res/layout/item_post_compact.xml | 1 + app/src/main/res/values/arrays.xml | 10 ++++++++++ app/src/main/res/values/strings.xml | 2 ++ app/src/main/res/xml/main_preferences.xml | 18 ++++++++++++++++++ 5 files changed, 33 insertions(+), 2 deletions(-) (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index ffa18ea1..a9008a36 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -109,9 +109,9 @@ android:layout_height="wrap_content" android:layout_margin="@dimen/fab_margin" android:visibility="gone" - app:backgroundTint="?attr/backgroundColor" + app:backgroundTint="@color/backgroundColorPrimary" app:srcCompat="@drawable/ic_add_bottom_app_bar_24dp" - app:tint="@null" + app:tint="@android:color/white" app:layout_anchor="@id/bottom_navigation_main_activity" /> diff --git a/app/src/main/res/layout/item_post_compact.xml b/app/src/main/res/layout/item_post_compact.xml index c3de103f..7bcb8072 100644 --- a/app/src/main/res/layout/item_post_compact.xml +++ b/app/src/main/res/layout/item_post_compact.xml @@ -382,6 +382,7 @@ diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index 602a3f00..4adfdff9 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -37,6 +37,16 @@ 2 + + Card Layout + Compact Layout + + + + 0 + 1 + + 1s 2s diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index f5a97676..0e2a5b66 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -300,6 +300,8 @@ Use Volume Keys to Navigate Posts Mute Video Show Elapsed Time in Posts and Comments + Default Post Layout + Show Divider in Compact Layout Swipe Right to Go Back From Comments Lazy Mode Interval Font Size diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml index 561222cd..395d10e1 100644 --- a/app/src/main/res/xml/main_preferences.xml +++ b/app/src/main/res/xml/main_preferences.xml @@ -41,6 +41,24 @@ app:key="show_elapsed_time" app:title="@string/settings_show_elapsed_time" /> + + + + + +