aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-10-16 06:46:01 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-10-16 06:46:01 +0000
commit1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005 (patch)
tree017834e7d5d863fc959360b5902291d8d4c1f1b6 /app/src/main/res
parent1d18e2c75ba35bb304c8dbac1823642b3bcf96d1 (diff)
downloadinfinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.tar
infinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.tar.gz
infinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.tar.bz2
infinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.tar.lz
infinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.tar.xz
infinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.tar.zst
infinity-for-reddit-1d7fbe3a993da8cc1ce5c64dc1cf29bf1659e005.zip
Add a button to directly select subreddit, user or multireddit in CustomizeMainPageTabsFragment.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/fragment_customize_main_page_tabs.xml114
-rw-r--r--app/src/main/res/values/strings.xml2
2 files changed, 88 insertions, 28 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 2a5f19d0..0d710862 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
@@ -175,37 +175,57 @@
</LinearLayout>
- <LinearLayout
- android:id="@+id/tab_1_name_linear_layout_customize_main_page_tabs_fragment"
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/tab_1_name_constraint_layout_customize_main_page_tabs_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
+ android:background="?attr/selectableItemBackground"
+ android:clickable="true"
+ android:focusable="true"
android:orientation="vertical"
- android:paddingTop="16dp"
- android:paddingBottom="16dp"
android:paddingStart="72dp"
+ android:paddingTop="16dp"
android:paddingEnd="16dp"
- android:clickable="true"
- android:focusable="true"
- android:background="?attr/selectableItemBackground"
+ android:paddingBottom="16dp"
android:visibility="gone">
<TextView
android:id="@+id/tab_1_name_title_text_view_customize_main_page_tabs_fragment"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:fontFamily="?attr/font_family"
android:textColor="@color/primaryTextColor"
android:textSize="?attr/font_16"
- android:fontFamily="?attr/font_family" />
+ app:layout_constraintEnd_toStartOf="@id/tab_1_name_add_image_view_customize_main_page_tabs_fragment"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/tab_1_name_summary_text_view_customize_main_page_tabs_fragment"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
+ android:fontFamily="?attr/font_family"
android:textColor="?attr/secondaryTextColor"
android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family" />
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/tab_1_name_add_image_view_customize_main_page_tabs_fragment"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintTop_toBottomOf="@id/tab_1_name_title_text_view_customize_main_page_tabs_fragment" />
- </LinearLayout>
+ <ImageView
+ android:id="@+id/tab_1_name_add_image_view_customize_main_page_tabs_fragment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:background="?actionBarItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ android:src="@drawable/ic_add_day_night_24dp"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent"
+ app:layout_constraintTop_toTopOf="parent" />
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
<View
android:id="@+id/divider_2_customize_main_page_tabs_fragment"
@@ -287,8 +307,8 @@
</LinearLayout>
- <LinearLayout
- android:id="@+id/tab_2_name_linear_layout_customize_main_page_tabs_fragment"
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/tab_2_name_constraint_layout_customize_main_page_tabs_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
@@ -303,21 +323,41 @@
<TextView
android:id="@+id/tab_2_name_title_text_view_customize_main_page_tabs_fragment"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:textColor="@color/primaryTextColor"
android:textSize="?attr/font_16"
- android:fontFamily="?attr/font_family" />
+ android:fontFamily="?attr/font_family"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/tab_2_name_add_image_view_customize_main_page_tabs_fragment" />
<TextView
android:id="@+id/tab_2_name_summary_text_view_customize_main_page_tabs_fragment"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:textColor="?attr/secondaryTextColor"
android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family" />
+ android:fontFamily="?attr/font_family"
+ app:layout_constraintTop_toBottomOf="@id/tab_2_name_title_text_view_customize_main_page_tabs_fragment"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/tab_2_name_add_image_view_customize_main_page_tabs_fragment" />
+
+ <ImageView
+ android:id="@+id/tab_2_name_add_image_view_customize_main_page_tabs_fragment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:src="@drawable/ic_add_day_night_24dp"
+ android:background="?actionBarItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
- </LinearLayout>
+ </androidx.constraintlayout.widget.ConstraintLayout>
<View
android:id="@+id/divider_3_customize_main_page_tabs_fragment"
@@ -399,8 +439,8 @@
</LinearLayout>
- <LinearLayout
- android:id="@+id/tab_3_name_linear_layout_customize_main_page_tabs_fragment"
+ <androidx.constraintlayout.widget.ConstraintLayout
+ android:id="@+id/tab_3_name_constraint_layout_customize_main_page_tabs_fragment"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
@@ -415,21 +455,41 @@
<TextView
android:id="@+id/tab_3_name_title_text_view_customize_main_page_tabs_fragment"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:textColor="@color/primaryTextColor"
android:textSize="?attr/font_16"
- android:fontFamily="?attr/font_family" />
+ android:fontFamily="?attr/font_family"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/tab_3_name_add_image_view_customize_main_page_tabs_fragment" />
<TextView
android:id="@+id/tab_3_name_summary_text_view_customize_main_page_tabs_fragment"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:textColor="?attr/secondaryTextColor"
android:textSize="?attr/font_default"
- android:fontFamily="?attr/font_family" />
-
- </LinearLayout>
+ android:fontFamily="?attr/font_family"
+ app:layout_constraintTop_toBottomOf="@id/tab_3_name_title_text_view_customize_main_page_tabs_fragment"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintStart_toStartOf="parent"
+ app:layout_constraintEnd_toStartOf="@id/tab_3_name_add_image_view_customize_main_page_tabs_fragment" />
+
+ <ImageView
+ android:id="@+id/tab_3_name_add_image_view_customize_main_page_tabs_fragment"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:padding="8dp"
+ android:src="@drawable/ic_add_day_night_24dp"
+ android:background="?actionBarItemBackground"
+ android:clickable="true"
+ android:focusable="true"
+ app:layout_constraintTop_toTopOf="parent"
+ app:layout_constraintBottom_toBottomOf="parent"
+ app:layout_constraintEnd_toEndOf="parent" />
+
+ </androidx.constraintlayout.widget.ConstraintLayout>
<View
android:id="@+id/divider_4_customize_main_page_tabs_fragment"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 78c0e0cb..f5654e8e 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -507,7 +507,7 @@
<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>
- <string name="settings_tab_multi_reddit_name">MultiReddit Name (/user/yourusername/m/yourmultiredditname)</string>
+ <string name="settings_tab_multi_reddit_name">MultiReddit Path (/user/yourusername/m/yourmultiredditname)</string>
<string name="settings_tab_username">Username (Without u/ prefix)</string>
<string name="no_developer_easter_egg">There\'s no developer options here</string>
<string name="settings_download_location_title">Download Location</string>