mirror of
https://github.com/mihonapp/mihon.git
synced 2025-10-30 05:47:57 +01:00
Add more settings to the reader
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="400"
|
||||
android:duration="200"
|
||||
android:fromXDelta="-100%"
|
||||
android:toXDelta="0%" />
|
||||
</set>
|
||||
@@ -2,7 +2,7 @@
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="400"
|
||||
android:duration="200"
|
||||
android:fromXDelta="100%"
|
||||
android:toXDelta="0%" />
|
||||
</set>
|
||||
@@ -2,7 +2,7 @@
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="400"
|
||||
android:duration="200"
|
||||
android:fromXDelta="0%"
|
||||
android:toXDelta="-100%" />
|
||||
</set>
|
||||
@@ -2,7 +2,7 @@
|
||||
<set xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shareInterpolator="false">
|
||||
<translate
|
||||
android:duration="400"
|
||||
android:duration="200"
|
||||
android:fromXDelta="0%"
|
||||
android:toXDelta="100%" />
|
||||
</set>
|
||||
BIN
app/src/main/res/drawable-hdpi/ic_more_vert.png
Normal file
BIN
app/src/main/res/drawable-hdpi/ic_more_vert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 183 B |
BIN
app/src/main/res/drawable-ldpi/ic_more_vert.png
Normal file
BIN
app/src/main/res/drawable-ldpi/ic_more_vert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 156 B |
BIN
app/src/main/res/drawable-mdpi/ic_more_vert.png
Normal file
BIN
app/src/main/res/drawable-mdpi/ic_more_vert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 142 B |
BIN
app/src/main/res/drawable-xhdpi/ic_more_vert.png
Normal file
BIN
app/src/main/res/drawable-xhdpi/ic_more_vert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 239 B |
BIN
app/src/main/res/drawable-xxhdpi/ic_more_vert.png
Normal file
BIN
app/src/main/res/drawable-xxhdpi/ic_more_vert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 363 B |
BIN
app/src/main/res/drawable-xxxhdpi/ic_more_vert.png
Normal file
BIN
app/src/main/res/drawable-xxxhdpi/ic_more_vert.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 588 B |
@@ -77,13 +77,15 @@
|
||||
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" />
|
||||
<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:id="@+id/reader_extra_settings"
|
||||
android:src="@drawable/ic_more_vert"
|
||||
android:background="?android:selectableItemBackground" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
39
app/src/main/res/layout/reader_popup.xml
Normal file
39
app/src/main/res/layout/reader_popup.xml
Normal file
@@ -0,0 +1,39 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="#333333"
|
||||
android:paddingRight="10dp"
|
||||
android:paddingLeft="5dp"
|
||||
android:paddingTop="5dp"
|
||||
android:paddingBottom="5dp">
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/enable_transitions"
|
||||
style="@style/grey_text"
|
||||
android:text="@string/pref_enable_transitions"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/show_page_number"
|
||||
style="@style/grey_text"
|
||||
android:text="@string/pref_show_page_number"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/hide_status_bar"
|
||||
style="@style/grey_text"
|
||||
android:text="@string/pref_hide_status_bar"/>
|
||||
|
||||
<CheckBox
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/keep_screen_on"
|
||||
style="@style/grey_text"
|
||||
android:text="Keep screen on"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -3,9 +3,14 @@
|
||||
<string name="pref_category_reader_key">pref_category_reader_key</string>
|
||||
<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_default_viewer_key">pref_default_viewer_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_enable_transitions_key">pref_enable_transitions_key</string>
|
||||
<string name="pref_show_page_number_key">pref_show_page_number_key</string>
|
||||
<string name="pref_keep_screen_on_key">pref_keep_screen_on_key</string>
|
||||
|
||||
<string name="pref_download_directory_key">pref_download_directory_key</string>
|
||||
<string name="pref_download_threads_key">pref_download_threads_key</string>
|
||||
</resources>
|
||||
@@ -34,6 +34,9 @@
|
||||
<string name="right_to_left_viewer">Right to left</string>
|
||||
<string name="vertical_viewer">Vertical</string>
|
||||
<string name="webtoon_viewer">Webtoon (experimental)</string>
|
||||
<string name="pref_lock_orientation">Lock orientation</string>
|
||||
<string name="pref_enable_transitions">Enable transitions</string>
|
||||
<string name="pref_show_page_number">Show page number</string>
|
||||
|
||||
<!-- Downloads section -->
|
||||
<string name="pref_download_directory">Downloads directory</string>
|
||||
@@ -83,6 +86,5 @@
|
||||
<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>
|
||||
|
||||
@@ -99,4 +99,11 @@
|
||||
<item name="android:singleLine">true</item>
|
||||
<item name="android:textIsSelectable">false</item>
|
||||
</style>
|
||||
<style name="reader_settings_popup_animation">
|
||||
<item name="android:windowEnterAnimation">@anim/enter_from_right</item>
|
||||
<item name="android:windowExitAnimation">@anim/exit_to_right</item>
|
||||
</style>
|
||||
<style name="grey_text">
|
||||
<item name="android:textColor">#e0e0e0</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
||||
@@ -9,6 +9,14 @@
|
||||
android:key="@string/pref_lock_orientation_key"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<CheckBoxPreference android:title="@string/pref_enable_transitions"
|
||||
android:key="@string/pref_enable_transitions_key"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<CheckBoxPreference android:title="@string/pref_show_page_number"
|
||||
android:key="@string/pref_show_page_number_key"
|
||||
android:defaultValue="true" />
|
||||
|
||||
<ListPreference android:title="@string/pref_viewer_type"
|
||||
android:key="@string/pref_default_viewer_key"
|
||||
android:entries="@array/viewers"
|
||||
|
||||
Reference in New Issue
Block a user