diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-12-22 15:08:33 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-12-22 15:08:33 +0000 |
commit | 71a7852c79f145a27b9d22a7ce56540ec2d45831 (patch) | |
tree | 022e7472f7743ef331a0e2c339fa40a81135f9ab /app/src/main/res/layout | |
parent | f4d061ceccf7c386321faf4093e27dab00e3e071 (diff) | |
download | infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.tar infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.tar.gz infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.tar.bz2 infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.tar.lz infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.tar.xz infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.tar.zst infinity-for-reddit-71a7852c79f145a27b9d22a7ce56540ec2d45831.zip |
Add only NSFW and only Spoiler options in CustomizePostFilterActivity. Fix nsfwTextView OnClickListener in PostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/activity_customize_post_filter.xml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/app/src/main/res/layout/activity_customize_post_filter.xml b/app/src/main/res/layout/activity_customize_post_filter.xml index d11daee5..571f9509 100644 --- a/app/src/main/res/layout/activity_customize_post_filter.xml +++ b/app/src/main/res/layout/activity_customize_post_filter.xml @@ -193,6 +193,66 @@ </LinearLayout> + <LinearLayout + android:id="@+id/only_nsfw_linear_layout_customize_post_filter_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="4dp" + android:paddingBottom="4dp" + android:paddingStart="32dp" + android:paddingEnd="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <TextView + android:id="@+id/only_nsfw_text_view_customize_post_filter_activity" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:text="@string/only_nsfw" + android:fontFamily="?attr/font_default" + android:textSize="?attr/font_default" /> + + <com.google.android.material.switchmaterial.SwitchMaterial + android:id="@+id/only_nsfw_switch_customize_post_filter_activity" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + </LinearLayout> + + <LinearLayout + android:id="@+id/only_spoiler_linear_layout_customize_post_filter_activity" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="4dp" + android:paddingBottom="4dp" + android:paddingStart="32dp" + android:paddingEnd="16dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <TextView + android:id="@+id/only_spoiler_text_view_customize_post_filter_activity" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:text="@string/only_spoiler" + android:fontFamily="?attr/font_default" + android:textSize="?attr/font_default" /> + + <com.google.android.material.switchmaterial.SwitchMaterial + android:id="@+id/only_spoiler_switch_customize_post_filter_activity" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + </LinearLayout> + <com.google.android.material.textfield.TextInputLayout android:id="@+id/title_excludes_strings_text_input_layout_customize_post_filter_activity" android:layout_width="match_parent" |