Improve reader options menu. Allow to select default viewer per manga. Allow to lock screen rotation. Working on more options.
BIN
app/src/main/res/drawable-hdpi/ic_screen_lock_landscape.png
Normal file
|
After Width: | Height: | Size: 370 B |
BIN
app/src/main/res/drawable-hdpi/ic_screen_lock_portrait.png
Normal file
|
After Width: | Height: | Size: 374 B |
BIN
app/src/main/res/drawable-hdpi/ic_screen_rotation.png
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
app/src/main/res/drawable-hdpi/ic_view_carousel.png
Normal file
|
After Width: | Height: | Size: 156 B |
BIN
app/src/main/res/drawable-ldpi/ic_screen_lock_landscape.png
Normal file
|
After Width: | Height: | Size: 327 B |
BIN
app/src/main/res/drawable-ldpi/ic_screen_lock_portrait.png
Normal file
|
After Width: | Height: | Size: 322 B |
BIN
app/src/main/res/drawable-ldpi/ic_screen_rotation.png
Normal file
|
After Width: | Height: | Size: 498 B |
BIN
app/src/main/res/drawable-ldpi/ic_view_carousel.png
Normal file
|
After Width: | Height: | Size: 295 B |
BIN
app/src/main/res/drawable-mdpi/ic_screen_lock_landscape.png
Normal file
|
After Width: | Height: | Size: 269 B |
BIN
app/src/main/res/drawable-mdpi/ic_screen_lock_portrait.png
Normal file
|
After Width: | Height: | Size: 277 B |
BIN
app/src/main/res/drawable-mdpi/ic_screen_rotation.png
Normal file
|
After Width: | Height: | Size: 578 B |
BIN
app/src/main/res/drawable-mdpi/ic_view_carousel.png
Normal file
|
After Width: | Height: | Size: 125 B |
|
Before Width: | Height: | Size: 482 B |
BIN
app/src/main/res/drawable-xhdpi/ic_screen_lock_landscape.png
Normal file
|
After Width: | Height: | Size: 381 B |
BIN
app/src/main/res/drawable-xhdpi/ic_screen_lock_portrait.png
Normal file
|
After Width: | Height: | Size: 388 B |
BIN
app/src/main/res/drawable-xhdpi/ic_screen_rotation.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
app/src/main/res/drawable-xhdpi/ic_view_carousel.png
Normal file
|
After Width: | Height: | Size: 142 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_screen_lock_landscape.png
Normal file
|
After Width: | Height: | Size: 617 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_screen_lock_portrait.png
Normal file
|
After Width: | Height: | Size: 643 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_screen_rotation.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
app/src/main/res/drawable-xxhdpi/ic_view_carousel.png
Normal file
|
After Width: | Height: | Size: 210 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_screen_lock_landscape.png
Normal file
|
After Width: | Height: | Size: 781 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_screen_lock_portrait.png
Normal file
|
After Width: | Height: | Size: 807 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_screen_rotation.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
app/src/main/res/drawable-xxxhdpi/ic_view_carousel.png
Normal file
|
After Width: | Height: | Size: 280 B |
@@ -1,9 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/reader_menu"
|
||||
android:visibility="gone">
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible">
|
||||
|
||||
<include layout="@layout/toolbar"/>
|
||||
|
||||
@@ -12,32 +14,79 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/reader_menu_bottom"
|
||||
android:background="@color/reader_menu_background"
|
||||
android:orientation="vertical"
|
||||
android:layout_alignParentBottom="true">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/current_page"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textColor="@color/light_grey"
|
||||
android:gravity="center_horizontal" />
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/page_seeker"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical" />
|
||||
<TextView
|
||||
android:id="@+id/current_page"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textColor="@color/light_grey"
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total_pages"
|
||||
android:layout_width="32dp"
|
||||
<SeekBar
|
||||
android:id="@+id/page_seeker"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_gravity="center_vertical" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/total_pages"
|
||||
android:layout_width="32dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textColor="@color/light_grey"
|
||||
android:gravity="center_horizontal" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<View android:background="#777777"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="1dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginRight="8dp"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:textColor="@color/light_grey"
|
||||
android:gravity="center_horizontal" />
|
||||
android:gravity="center_horizontal"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginBottom="8dp">
|
||||
|
||||
<ImageButton
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/lock_orientation"
|
||||
android:src="@drawable/ic_screen_rotation"
|
||||
android:background="?android:selectableItemBackground" />
|
||||
<ImageButton
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground" />
|
||||
<ImageButton
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:background="?android:selectableItemBackground" />
|
||||
<ImageButton
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:id="@+id/reader_selector"
|
||||
android:src="@drawable/ic_view_carousel"
|
||||
android:background="?android:selectableItemBackground" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
@@ -14,10 +14,17 @@
|
||||
<item>4</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="viewers_selector">
|
||||
<item>@string/default_viewer</item>
|
||||
<item>@string/left_to_right_viewer</item>
|
||||
<item>@string/right_to_left_viewer</item>
|
||||
<item>@string/vertical_viewer</item>
|
||||
<item>@string/webtoon_viewer</item>
|
||||
</string-array>
|
||||
|
||||
<string-array name="download_threads">
|
||||
<item>1</item>
|
||||
<item>2</item>
|
||||
<item>3</item>
|
||||
</string-array>
|
||||
|
||||
</resources>
|
||||
@@ -4,6 +4,7 @@
|
||||
<string name="pref_category_accounts_key">pref_category_accounts_key</string>
|
||||
<string name="pref_category_downloads_key">pref_category_downloads_key</string>
|
||||
<string name="pref_hide_status_bar_key">pref_hide_status_bar_key</string>
|
||||
<string name="pref_lock_orientation_key">pref_lock_orientation_key</string>
|
||||
<string name="pref_default_viewer_key">pref_default_viewer_key</string>
|
||||
<string name="pref_download_directory_key">pref_download_directory_key</string>
|
||||
<string name="pref_download_threads_key">pref_download_threads_key</string>
|
||||
|
||||
@@ -29,6 +29,7 @@
|
||||
<!-- Reader section -->
|
||||
<string name="pref_hide_status_bar">Hide status bar</string>
|
||||
<string name="pref_viewer_type">Default viewer</string>
|
||||
<string name="default_viewer">Default</string>
|
||||
<string name="left_to_right_viewer">Left to right</string>
|
||||
<string name="right_to_left_viewer">Right to left</string>
|
||||
<string name="vertical_viewer">Vertical</string>
|
||||
@@ -82,5 +83,6 @@
|
||||
<string name="notification_completed">Update completed</string>
|
||||
<string name="notification_no_new_chapters">No new chapters found</string>
|
||||
<string name="notification_new_chapters">Found new chapters for:</string>
|
||||
<string name="pref_lock_orientation">Lock orientation</string>
|
||||
|
||||
</resources>
|
||||
|
||||
@@ -5,6 +5,10 @@
|
||||
android:key="@string/pref_hide_status_bar_key"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<CheckBoxPreference android:title="@string/pref_lock_orientation"
|
||||
android:key="@string/pref_lock_orientation_key"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<ListPreference android:title="@string/pref_viewer_type"
|
||||
android:key="@string/pref_default_viewer_key"
|
||||
android:entries="@array/viewers"
|
||||
|
||||