diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-12-31 09:00:25 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-12-31 09:00:25 +0000 |
commit | a6f728a96b1f3968e434678fc56ed2dd38b6b54a (patch) | |
tree | cbb0898d77d9515221ac7f7f6da733fa51e93f97 /app/src/main/res | |
parent | 321f4da6230fd6197e5e0773db3a8d28b01e5215 (diff) | |
download | infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.tar infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.tar.gz infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.tar.bz2 infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.tar.lz infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.tar.xz infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.tar.zst infinity-for-reddit-a6f728a96b1f3968e434678fc56ed2dd38b6b54a.zip |
Mark posts as read on scroll.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/layout/fragment_post_history.xml | 31 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 5 |
2 files changed, 34 insertions, 2 deletions
diff --git a/app/src/main/res/layout/fragment_post_history.xml b/app/src/main/res/layout/fragment_post_history.xml index 325d74e1..8ced3790 100644 --- a/app/src/main/res/layout/fragment_post_history.xml +++ b/app/src/main/res/layout/fragment_post_history.xml @@ -93,6 +93,37 @@ </LinearLayout> <LinearLayout + android:id="@+id/mark_posts_as_read_on_scroll_linear_layout_post_history_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_mark_posts_as_read_on_scroll_title" + android:textColor="?attr/primaryTextColor" + android:textSize="?attr/font_16" + android:fontFamily="?attr/font_family" /> + + <com.google.android.material.switchmaterial.SwitchMaterial + android:id="@+id/mark_posts_as_read_on_scroll_switch_post_history_fragment" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" /> + + </LinearLayout> + + <LinearLayout android:id="@+id/hide_read_posts_automatically_linear_layout_post_history_fragment" android:layout_width="match_parent" android:layout_height="wrap_content" diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c34a01ce..8223e5f7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -517,8 +517,9 @@ <string name="settings_language_title">Language</string> <string name="settings_enable_search_history_title">Enable Search History</string> <string name="settings_post_history_title">Post History</string> - <string name="settings_mark_posts_as_read_title">Mark Posts As Read</string> - <string name="settings_mark_posts_as_read_after_voting_title">Mark Posts As Read After Voting</string> + <string name="settings_mark_posts_as_read_title">Mark Posts as Read</string> + <string name="settings_mark_posts_as_read_after_voting_title">Mark Posts as Read After Voting</string> + <string name="settings_mark_posts_as_read_on_scroll_title">Mark Posts as Read on Scroll</string> <string name="settings_hide_read_posts_automatically_title">Hide Read Posts Automatically</string> <string name="no_link_available">Cannot get the link</string> |