aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2019-11-17 15:41:58 +0000
committerAlex Ning <chineseperson5@gmail.com>2019-11-17 15:41:58 +0000
commitb997963808a418948e46841c406f03deafd21f94 (patch)
treea428768a4d35a8e5299b83925c5ac104c41f2e3c /app/src/main/res
parentee60cbf640df8386bd7ffab0508edff9c283fdbd (diff)
downloadinfinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.tar
infinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.tar.gz
infinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.tar.bz2
infinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.tar.lz
infinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.tar.xz
infinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.tar.zst
infinity-for-reddit-b997963808a418948e46841c406f03deafd21f94.zip
Add a Fab to scroll down parent comments. Use volume up and down keys to navigate parent comments.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/drawable/ic_keyboard_arrow_down_24dp.xml9
-rw-r--r--app/src/main/res/layout/activity_view_post_detail.xml10
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/main_preferences.xml11
4 files changed, 28 insertions, 3 deletions
diff --git a/app/src/main/res/drawable/ic_keyboard_arrow_down_24dp.xml b/app/src/main/res/drawable/ic_keyboard_arrow_down_24dp.xml
new file mode 100644
index 00000000..9f2d9ba3
--- /dev/null
+++ b/app/src/main/res/drawable/ic_keyboard_arrow_down_24dp.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFFFF"
+ android:pathData="M7.41,8.59L12,13.17l4.59,-4.58L18,10l-6,6 -6,-6 1.41,-1.41z"/>
+</vector>
diff --git a/app/src/main/res/layout/activity_view_post_detail.xml b/app/src/main/res/layout/activity_view_post_detail.xml
index eb48f340..98794359 100644
--- a/app/src/main/res/layout/activity_view_post_detail.xml
+++ b/app/src/main/res/layout/activity_view_post_detail.xml
@@ -70,4 +70,14 @@
</LinearLayout>
+ <com.google.android.material.floatingactionbutton.FloatingActionButton
+ android:id="@+id/fab_view_post_detail_activity"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="bottom|end"
+ android:layout_margin="@dimen/fab_margin"
+ app:backgroundTint="@color/backgroundColorPrimary"
+ app:tint="@android:color/white"
+ app:srcCompat="@drawable/ic_keyboard_arrow_down_24dp" />
+
</androidx.coordinatorlayout.widget.CoordinatorLayout> \ 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 88228a44..9452003c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -289,6 +289,7 @@
<string name="settings_amoled_dark_title">Amoled Dark</string>
<string name="settings_immersive_interface_title">Immersive Interface</string>
<string name="settings_vote_buttons_on_the_right_title">Vote Buttons on the Right</string>
+ <string name="settings_volume_keys_navigate_comments_title">Use Volume Keys to Navigate Comments in Posts</string>
<string name="settings_show_elapsed_time">Show Elpased Time in Posts and Comments</string>
<string name="swipe_to_go_back_from_post_detail">Swipe Right to Go Back From Comments</string>
<string name="settings_lazy_mode_interval_title">Lazy Mode Interval</string>
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index db4b75a1..894642fa 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -29,17 +29,22 @@
<SwitchPreference
app:defaultValue="false"
app:key="vote_buttons_on_the_right"
- app:title="@string/settings_vote_buttons_on_the_right_title"/>
+ app:title="@string/settings_vote_buttons_on_the_right_title" />
<SwitchPreference
app:defaultValue="false"
app:key="show_elapsed_time"
- app:title="@string/settings_show_elapsed_time"/>
+ app:title="@string/settings_show_elapsed_time" />
<SwitchPreference
app:defaultValue="true"
app:key="swipe_to_go_back_from_post_detail"
- app:title="@string/swipe_to_go_back_from_post_detail"/>
+ app:title="@string/swipe_to_go_back_from_post_detail" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="volume_keys_navigate_comments"
+ app:title="@string/settings_volume_keys_navigate_comments_title" />
<Preference
app:title="@string/settings_font_size_title"