Information bar in reader

This commit is contained in:
Koitharu
2022-08-02 15:02:26 +03:00
parent 6c43881cf4
commit c70ecd9cfd
11 changed files with 183 additions and 21 deletions

View File

@@ -12,6 +12,15 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
<org.koitharu.kotatsu.reader.ui.ReaderInfoBarView
android:id="@+id/infoBar"
android:layout_width="match_parent"
android:layout_height="16dp"
android:layout_gravity="top"
android:paddingHorizontal="6dp"
android:visibility="gone"
tools:visibility="visible" />
<org.koitharu.kotatsu.reader.ui.ReaderToastView
android:id="@+id/toastView"
android:layout_width="wrap_content"

View File

@@ -25,6 +25,15 @@
android:theme="@style/ThemeOverlay.Material3.Dark"
tools:text="@string/loading_" />
<org.koitharu.kotatsu.reader.ui.ReaderInfoBarView
android:id="@+id/infoBar"
android:layout_width="match_parent"
android:layout_height="16dp"
android:layout_gravity="top"
android:paddingHorizontal="4dp"
android:visibility="gone"
tools:visibility="visible" />
<com.google.android.material.appbar.AppBarLayout
android:id="@+id/appbar_top"
android:layout_width="match_parent"

View File

@@ -364,4 +364,6 @@
<string name="automatic_scroll">Automatic scroll</string>
<string name="off_short">Off</string>
<string name="seconds_pattern">%ss</string>
<string name="reader_info_pattern">Ch. %1$d/%2$d Pg. %3$d/%4$d</string>
<string name="reader_info_bar">Show information bar in reader</string>
</resources>

View File

@@ -34,6 +34,11 @@
android:key="reader_animation"
android:title="@string/pages_animation" />
<SwitchPreferenceCompat
android:defaultValue="true"
android:key="reader_bar"
android:title="@string/reader_info_bar" />
<SwitchPreferenceCompat
android:defaultValue="false"
android:key="pages_numbers"
@@ -45,7 +50,6 @@
android:key="screenshots_policy"
android:title="@string/screenshots_policy"
app:defaultValue="allow"
app:useSimpleSummaryProvider="true" />
<ListPreference
@@ -57,4 +61,4 @@
app:useSimpleSummaryProvider="true" />
</PreferenceScreen>
</PreferenceScreen>