From 829a65e51509162cad8be4f7b0ba463ca80fa3c1 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 13 Feb 2021 17:00:00 -0500 Subject: [PATCH] Adjust reader seekbar design - Revert back to old prev/next chapter icons - Make views taller for easier actions - Use more consistent spacing - Add ripples to prev/next chapter buttons --- .../main/res/drawable/ic_skip_next_24dp.xml | 9 ++++++ .../res/drawable/ic_skip_previous_24dp.xml | 9 ++++++ .../drawable/reader_seekbar_background.xml | 2 +- .../res/drawable/reader_seekbar_button.xml | 7 +++++ .../res/drawable/reader_seekbar_ripple.xml | 10 ++++++ app/src/main/res/layout/reader_activity.xml | 31 ++++++++----------- 6 files changed, 49 insertions(+), 19 deletions(-) create mode 100644 app/src/main/res/drawable/ic_skip_next_24dp.xml create mode 100644 app/src/main/res/drawable/ic_skip_previous_24dp.xml create mode 100644 app/src/main/res/drawable/reader_seekbar_button.xml create mode 100644 app/src/main/res/drawable/reader_seekbar_ripple.xml diff --git a/app/src/main/res/drawable/ic_skip_next_24dp.xml b/app/src/main/res/drawable/ic_skip_next_24dp.xml new file mode 100644 index 000000000..78ae4da4f --- /dev/null +++ b/app/src/main/res/drawable/ic_skip_next_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_skip_previous_24dp.xml b/app/src/main/res/drawable/ic_skip_previous_24dp.xml new file mode 100644 index 000000000..2dad0ad04 --- /dev/null +++ b/app/src/main/res/drawable/ic_skip_previous_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/reader_seekbar_background.xml b/app/src/main/res/drawable/reader_seekbar_background.xml index 0e6908eca..e4f49ad60 100644 --- a/app/src/main/res/drawable/reader_seekbar_background.xml +++ b/app/src/main/res/drawable/reader_seekbar_background.xml @@ -1,6 +1,6 @@ - + diff --git a/app/src/main/res/drawable/reader_seekbar_button.xml b/app/src/main/res/drawable/reader_seekbar_button.xml new file mode 100644 index 000000000..cbe9ef163 --- /dev/null +++ b/app/src/main/res/drawable/reader_seekbar_button.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/app/src/main/res/drawable/reader_seekbar_ripple.xml b/app/src/main/res/drawable/reader_seekbar_ripple.xml new file mode 100644 index 000000000..2ee27919b --- /dev/null +++ b/app/src/main/res/drawable/reader_seekbar_ripple.xml @@ -0,0 +1,10 @@ + + + + + + + + + diff --git a/app/src/main/res/layout/reader_activity.xml b/app/src/main/res/layout/reader_activity.xml index 05773506c..38ba1d354 100644 --- a/app/src/main/res/layout/reader_activity.xml +++ b/app/src/main/res/layout/reader_activity.xml @@ -68,33 +68,31 @@ android:id="@+id/reader_nav" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_gravity="bottom" android:layout_marginStart="8dp" android:layout_marginEnd="8dp" android:layout_marginBottom="16dp" - android:gravity="center" + android:layoutDirection="ltr" android:orientation="horizontal"> + android:layout_weight="1" + android:background="@drawable/reader_seekbar_button" + android:paddingStart="8dp" + android:paddingEnd="8dp"> -