diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-12-22 15:56:20 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-12-22 15:56:20 +0000 |
commit | efa960013ac2cbf3909e8f8867a1b9e2dd2791f2 (patch) | |
tree | 993f6b809d0b3b8a5f73814ab487c81a542772bd /app/src/main/res | |
parent | 71a7852c79f145a27b9d22a7ce56540ec2d45831 (diff) | |
download | infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.tar infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.tar.gz infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.tar.bz2 infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.tar.lz infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.tar.xz infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.tar.zst infinity-for-reddit-efa960013ac2cbf3909e8f8867a1b9e2dd2791f2.zip |
New option in FAB: Filter Posts. Add Gif option in PostFilter.
Diffstat (limited to 'app/src/main/res')
4 files changed, 53 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 571f9509..72aeb6bc 100644 --- a/app/src/main/res/layout/activity_customize_post_filter.xml +++ b/app/src/main/res/layout/activity_customize_post_filter.xml @@ -134,6 +134,36 @@ </LinearLayout> <LinearLayout + android:id="@+id/post_type_gif_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="8dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground"> + + <TextView + android:id="@+id/post_type_gif_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/post_type_gif" + android:fontFamily="?attr/font_default" + android:textSize="?attr/font_default" /> + + <com.google.android.material.checkbox.MaterialCheckBox + android:id="@+id/post_type_gif_check_box_customize_post_filter_activity" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + </LinearLayout> + + <LinearLayout android:id="@+id/post_type_video_linear_layout_customize_post_filter_activity" android:layout_width="match_parent" android:layout_height="wrap_content" diff --git a/app/src/main/res/layout/activity_filtered_thing.xml b/app/src/main/res/layout/activity_filtered_thing.xml index 59b857af..5aa0207b 100644 --- a/app/src/main/res/layout/activity_filtered_thing.xml +++ b/app/src/main/res/layout/activity_filtered_thing.xml @@ -26,6 +26,7 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:minHeight="?attr/actionBarSize" + app:subtitle="@string/filtered_posts_activity_subtitle" app:popupTheme="@style/AppTheme.PopupOverlay" app:navigationIcon="?attr/homeAsUpIndicator" /> diff --git a/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml b/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml index 6a0773b2..3fd3c62b 100644 --- a/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml +++ b/app/src/main/res/layout/fragment_fab_more_options_bottom_sheet.xml @@ -182,6 +182,25 @@ android:focusable="true" android:background="?attr/selectableItemBackground" /> + <TextView + android:id="@+id/filter_posts_text_view_fab_more_options_bottom_sheet_fragment" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center_vertical" + android:paddingTop="16dp" + android:paddingBottom="16dp" + android:paddingStart="32dp" + android:paddingEnd="32dp" + android:text="@string/filter_posts" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_default" + android:fontFamily="?attr/font_family" + app:drawableStartCompat="@drawable/ic_filter_24dp" + android:drawablePadding="48dp" + android:clickable="true" + android:focusable="true" + android:background="?attr/selectableItemBackground" /> + </LinearLayout> </androidx.core.widget.NestedScrollView>
\ 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 17bb15bc..0843d94e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -35,6 +35,7 @@ <string name="give_award_activity_label">Give Award</string> <string name="subreddit_filter_popular_and_all_activity_label">r/all and r/popular</string> <string name="customize_post_filter_activity_label">Post Filter</string> + <string name="filtered_posts_activity_subtitle">Filtered Posts</string> <string name="navigation_drawer_open">Open navigation drawer</string> <string name="navigation_drawer_close">Close navigation drawer</string> @@ -199,6 +200,7 @@ <string name="bottom_sheet_post_link">Link</string> <string name="bottom_sheet_post_image">Image</string> <string name="bottom_sheet_post_video">Video</string> + <string name="post_type_gif">Gif</string> <string name="post_type_gallery">Gallery</string> <string name="select_from_gallery">Select a picture</string> @@ -952,6 +954,7 @@ <string name="select_video_quality">Select Video Quality</string> <string name="hide_read_posts">Hide Read Posts</string> + <string name="filter_posts">Filter Posts</string> <string name="only_nsfw">Only NSFW</string> <string name="only_spoiler">Only Spoiler</string> |