From b6ebcf1c4c4b849e581c95110c8eeb36926ac72d Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Fri, 25 Sep 2020 12:08:17 +0800 Subject: Add options to customize bottom app bar. --- .../layout/fragment_customize_bottom_app_bar.xml | 399 +++++++++++++++++++++ .../layout/fragment_customize_main_page_tabs.xml | 5 +- app/src/main/res/values/arrays.xml | 19 + app/src/main/res/values/strings.xml | 14 +- app/src/main/res/xml/interface_preference.xml | 7 +- .../number_of_columns_in_post_feed_preferences.xml | 2 +- 6 files changed, 438 insertions(+), 8 deletions(-) create mode 100644 app/src/main/res/layout/fragment_customize_bottom_app_bar.xml (limited to 'app/src/main/res') diff --git a/app/src/main/res/layout/fragment_customize_bottom_app_bar.xml b/app/src/main/res/layout/fragment_customize_bottom_app_bar.xml new file mode 100644 index 00000000..281f7448 --- /dev/null +++ b/app/src/main/res/layout/fragment_customize_bottom_app_bar.xml @@ -0,0 +1,399 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/res/layout/fragment_customize_main_page_tabs.xml b/app/src/main/res/layout/fragment_customize_main_page_tabs.xml index f20ec4d3..03ba6d4d 100644 --- a/app/src/main/res/layout/fragment_customize_main_page_tabs.xml +++ b/app/src/main/res/layout/fragment_customize_main_page_tabs.xml @@ -17,7 +17,7 @@ android:layout_height="wrap_content" android:padding="16dp" android:drawablePadding="32dp" - android:text="@string/settings_tab_info" + android:text="@string/restart_app_see_changes" android:textColor="@color/settingsSubtitleColor" android:gravity="center_vertical" android:textSize="?attr/font_default" @@ -40,7 +40,6 @@ diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index fd1a386c..5fef81f8 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -230,4 +230,23 @@ 2 3 + + + 2 + 4 + + + + Subscriptions + Multireddits + Inbox + Profile + + + + Home + Subscriptions + Inbox + Profile + \ 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 5a30de5a..dc160ad2 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -345,7 +345,7 @@ Ignore Navigation Bar in Immersive Interface Prevent the Bottom Navigation Bar Having Extra Padding Customize Tabs in Main Page - Only for Logged-in User + Only for Logged-in User Enable Bottom Navigation Has No Effect in Anonymous Mode Post and Comment @@ -446,7 +446,7 @@ Delete All Legacy Settings Reset All Settings Clean the database and shared preferences - Restart the app to see the changes + Restart the app to see the changes Tab Count Show Tab Names Tab 1 @@ -476,6 +476,14 @@ Require Authentication to Go to Account Section in Navigation Drawer Long Press to Hide Toolbar in Compact Layout Toolbar in Compact Layout Hidden by Default + Customize Bottom Navigation Bar + Main Page + Other Pages + Option Count + Option 1 + Option 2 + Option 3 + Option 4 Cannot get the link @@ -882,5 +890,7 @@ Unlock Account Section Unlock + + Hello blank fragment diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml index f898291c..0b767200 100644 --- a/app/src/main/res/xml/interface_preference.xml +++ b/app/src/main/res/xml/interface_preference.xml @@ -15,9 +15,14 @@ + +