aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/layout
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-24 11:01:54 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-24 11:01:54 +0000
commit0c251c972c61867f7ebe802390df2ace9c19761f (patch)
treeabb29b4b1731f84ac507c7fec0f0a42d57d9221b /app/src/main/res/layout
parentd6051ca932a234da18dcd9eb351be741d085c9d4 (diff)
downloadinfinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.tar
infinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.tar.gz
infinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.tar.bz2
infinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.tar.lz
infinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.tar.xz
infinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.tar.zst
infinity-for-reddit-0c251c972c61867f7ebe802390df2ace9c19761f.zip
Support showing favorite subscribed subreddits in the main page.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r--app/src/main/res/layout/fragment_customize_main_page_tabs.xml31
1 files changed, 31 insertions, 0 deletions
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 9a91549a..c9991b92 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
@@ -448,6 +448,37 @@
android:fontFamily="?attr/font_family" />
<LinearLayout
+ android:id="@+id/show_favorite_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_favorite_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_favorite_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
android:id="@+id/show_subscribed_subreddits_linear_layout_customize_main_page_tabs_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"