aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-10-15 04:09:31 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2023-10-15 04:09:31 +0000
commit70c2d571ce113d912bfc04cd86af36f602528740 (patch)
treeb99881026c494ac44ecbf4395e66ebc3c528f7c4 /app/src/main/res
parent06092c73d43bb9ddcf9b272776d9ef9e7caafbeb (diff)
downloadinfinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.tar
infinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.tar.gz
infinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.tar.bz2
infinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.tar.lz
infinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.tar.xz
infinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.tar.zst
infinity-for-reddit-70c2d571ce113d912bfc04cd86af36f602528740.zip
Continue implementing showing post filter usages in PostFilterPreferenceActivity.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/item_post_filter_usage_embedded.xml8
-rw-r--r--app/src/main/res/layout/item_post_filter_with_usage.xml (renamed from app/src/main/res/layout/item_post_filter.xml)11
-rw-r--r--app/src/main/res/values/strings.xml3
3 files changed, 18 insertions, 4 deletions
diff --git a/app/src/main/res/layout/item_post_filter_usage_embedded.xml b/app/src/main/res/layout/item_post_filter_usage_embedded.xml
new file mode 100644
index 00000000..bfec3dbb
--- /dev/null
+++ b/app/src/main/res/layout/item_post_filter_usage_embedded.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="utf-8"?>
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:padding="16dp"
+ android:textColor="?attr/primaryTextColor"
+ android:textSize="?attr/font_default"
+ android:fontFamily="?attr/font_family" /> \ No newline at end of file
diff --git a/app/src/main/res/layout/item_post_filter.xml b/app/src/main/res/layout/item_post_filter_with_usage.xml
index 8487e105..8a083caa 100644
--- a/app/src/main/res/layout/item_post_filter.xml
+++ b/app/src/main/res/layout/item_post_filter_with_usage.xml
@@ -25,10 +25,13 @@
android:paddingEnd="16dp"
android:textColor="?attr/primaryTextColor"
android:textSize="?attr/font_16"
- android:fontFamily="?attr/font_family"
- android:clickable="true"
- android:focusable="true"
- android:background="?attr/selectableItemBackground" />
+ android:fontFamily="?attr/font_family" />
+
+ <androidx.recyclerview.widget.RecyclerView
+ android:id="@+id/post_filter_usage_recycler_view_item_post_filter"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:nestedScrollingEnabled="false" />
</LinearLayout>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index c6e755e8..44534471 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -1372,4 +1372,7 @@
Otherwise, Infinity may not load posts at all. Sorry for the inconvenience.</string>
<string name="i_understand">I understand</string>
+ <string name="click_to_apply_post_filter">Click here to apply it to some post feeds</string>
+ <string name="post_filter_usage_embedded_more_count">and %1$d more</string>
+
</resources>