diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-09-24 07:20:11 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-09-24 07:20:11 +0000 |
commit | cf1d14264d305f079f6d1aaa93dd0d499eb48ade (patch) | |
tree | f26fb807e26632134276508c1a94bb7e2c2fc19e /app/src/main/res | |
parent | 396501e350b23667bb70728fbd60b715beffe489 (diff) | |
download | infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.tar infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.tar.gz infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.tar.bz2 infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.tar.lz infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.tar.xz infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.tar.zst infinity-for-reddit-cf1d14264d305f079f6d1aaa93dd0d499eb48ade.zip |
Support showing subscribed subreddits in the main page.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/app_bar_main.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_customize_main_page_tabs.xml | 67 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_nsfw_and_spoiler.xml | 6 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 |
4 files changed, 63 insertions, 13 deletions
diff --git a/app/src/main/res/layout/app_bar_main.xml b/app/src/main/res/layout/app_bar_main.xml index 023ee042..5272b575 100644 --- a/app/src/main/res/layout/app_bar_main.xml +++ b/app/src/main/res/layout/app_bar_main.xml @@ -40,7 +40,6 @@ app:layout_scrollFlags="scroll|enterAlways" app:tabGravity="fill" app:tabIndicatorHeight="3dp" - app:tabMode="fixed" app:tabRippleColor="?attr/colorControlHighlight" app:tabUnboundedRipple="false" /> 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 a6803e7f..bd91d961 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 @@ -60,7 +60,7 @@ android:layout_height="wrap_content" android:text="@string/settings_tab_title" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -91,7 +91,7 @@ android:layout_height="wrap_content" android:text="@string/settings_tab_post_type" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -123,7 +123,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -172,7 +172,7 @@ android:layout_height="wrap_content" android:text="@string/settings_tab_title" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -203,7 +203,7 @@ android:layout_height="wrap_content" android:text="@string/settings_tab_post_type" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -235,7 +235,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -284,7 +284,7 @@ android:layout_height="wrap_content" android:text="@string/settings_tab_title" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -315,7 +315,7 @@ android:layout_height="wrap_content" android:text="@string/settings_tab_post_type" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -347,7 +347,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:textColor="@color/primaryTextColor" - android:textSize="?attr/font_18" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <TextView @@ -360,6 +360,55 @@ </LinearLayout> + <View + android:id="@+id/divider_4_customize_main_page_tabs_fragment" + android:layout_width="match_parent" + android:layout_height="1dp" + android:background="@color/dividerColor" /> + + <TextView + android:id="@+id/more_tabs_group_summary_customize_main_page_tabs_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="16dp" + android:paddingStart="72dp" + android:paddingEnd="16dp" + android:text="@string/settings_more_tabs_summary" + android:textColor="@color/colorAccent" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" /> + + <LinearLayout + android:id="@+id/show_subscribed_subreddits_linear_layout_customize_main_page_tabs_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="4dp" + android:paddingBottom="4dp" + android:paddingStart="72dp" + android:paddingEnd="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <TextView + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_marginEnd="16dp" + android:layout_gravity="center_vertical" + android:text="@string/settings_more_tabs_show_subscribed_subreddits_title" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_16" + android:fontFamily="?attr/font_family" /> + + <com.google.android.material.switchmaterial.SwitchMaterial + android:id="@+id/show_subscribed_subreddits_switch_material_customize_main_page_tabs_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + </LinearLayout> + </LinearLayout> </androidx.core.widget.NestedScrollView>
\ No newline at end of file diff --git a/app/src/main/res/layout/fragment_nsfw_and_spoiler.xml b/app/src/main/res/layout/fragment_nsfw_and_spoiler.xml index a1f53ee2..ccb9ff66 100644 --- a/app/src/main/res/layout/fragment_nsfw_and_spoiler.xml +++ b/app/src/main/res/layout/fragment_nsfw_and_spoiler.xml @@ -34,7 +34,7 @@ android:drawablePadding="32dp" android:text="@string/settings_enable_nsfw_title" android:textColor="?attr/primaryTextColor" - android:textSize="?attr/font_default" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <com.google.android.material.switchmaterial.SwitchMaterial @@ -66,7 +66,7 @@ android:layout_gravity="center_vertical" android:text="@string/settings_blur_nsfw_title" android:textColor="?attr/primaryTextColor" - android:textSize="?attr/font_default" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <com.google.android.material.switchmaterial.SwitchMaterial @@ -97,7 +97,7 @@ android:layout_gravity="center_vertical" android:text="@string/settings_blur_spoiler_title" android:textColor="?attr/primaryTextColor" - android:textSize="?attr/font_default" + android:textSize="?attr/font_16" android:fontFamily="?attr/font_family" /> <com.google.android.material.switchmaterial.SwitchMaterial diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b2b67754..5cfee780 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -450,6 +450,8 @@ <string name="settings_tab_1_summary">Tab 1</string> <string name="settings_tab_2_summary">Tab 2</string> <string name="settings_tab_3_summary">Tab 3</string> + <string name="settings_more_tabs_summary">More Tabs</string> + <string name="settings_more_tabs_show_subscribed_subreddits_title">Show Subscribed Subreddits</string> <string name="settings_tab_title">Title</string> <string name="settings_tab_post_type">Type</string> <string name="settings_tab_subreddit_name">Subreddit Name (Without r/ prefix)</string> |