2020-12-26 23:40:31 +08:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-01-12 11:13:46 +08:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2016-06-27 22:46:31 +08:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center">
|
2015-10-21 06:04:04 +08:00
|
|
|
|
2015-10-24 22:04:42 +08:00
|
|
|
<FrameLayout
|
2016-06-27 22:46:31 +08:00
|
|
|
android:id="@+id/reader_container"
|
2015-10-21 06:04:04 +08:00
|
|
|
android:layout_width="match_parent"
|
2015-11-19 04:54:33 +08:00
|
|
|
android:layout_height="match_parent">
|
2016-06-27 22:46:31 +08:00
|
|
|
|
|
|
|
<FrameLayout
|
2018-09-01 23:12:59 +08:00
|
|
|
android:id="@+id/viewer_container"
|
2016-06-27 22:46:31 +08:00
|
|
|
android:layout_width="match_parent"
|
2020-01-12 11:13:46 +08:00
|
|
|
android:layout_height="match_parent" />
|
2016-06-27 22:46:31 +08:00
|
|
|
|
2017-11-18 21:09:28 +08:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.PageIndicatorTextView
|
2016-06-27 22:46:31 +08:00
|
|
|
android:id="@+id/page_number"
|
|
|
|
style="@style/TextAppearance.Regular.Caption"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-11-18 21:09:28 +08:00
|
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
|
|
android:padding="4dp"
|
2020-05-31 23:19:09 +08:00
|
|
|
android:textDirection="ltr"
|
2017-11-20 20:55:50 +08:00
|
|
|
android:textStyle="bold" />
|
2016-06-27 22:46:31 +08:00
|
|
|
|
2015-10-24 22:04:42 +08:00
|
|
|
</FrameLayout>
|
2015-10-21 06:04:04 +08:00
|
|
|
|
2021-03-26 11:10:22 +08:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
|
2020-02-23 13:07:34 +08:00
|
|
|
android:id="@+id/color_overlay"
|
|
|
|
android:layout_width="match_parent"
|
2021-03-21 03:36:01 +08:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderNavigationOverlayView
|
|
|
|
android:id="@+id/navigation_overlay"
|
|
|
|
android:layout_width="match_parent"
|
2020-02-23 13:07:34 +08:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:visibility="gone" />
|
|
|
|
|
2016-06-27 22:46:31 +08:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/reader_menu"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-09-01 23:12:59 +08:00
|
|
|
android:theme="?attr/actionBarTheme"
|
2016-06-27 22:46:31 +08:00
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2020-03-13 07:14:43 +08:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2016-06-27 22:46:31 +08:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
2021-04-14 20:59:23 +08:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-23 00:02:49 +08:00
|
|
|
android:minHeight="?attr/actionBarSize" />
|
2016-06-27 22:46:31 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_menu_bottom"
|
|
|
|
android:layout_width="match_parent"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_height="wrap_content"
|
2016-06-27 22:46:31 +08:00
|
|
|
android:layout_gravity="bottom"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:orientation="vertical">
|
2016-06-27 22:46:31 +08:00
|
|
|
|
2021-02-13 23:47:17 +08:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_nav"
|
|
|
|
android:layout_width="match_parent"
|
2016-06-27 22:46:31 +08:00
|
|
|
android:layout_height="wrap_content"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:layoutDirection="ltr"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/left_chapter"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_marginEnd="8dp"
|
2021-03-01 05:18:21 +08:00
|
|
|
android:background="@drawable/reader_seekbar_button"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:contentDescription="@string/action_previous_chapter"
|
2021-05-22 22:10:41 +08:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-14 06:00:00 +08:00
|
|
|
app:srcCompat="@drawable/ic_skip_previous_24dp"
|
2021-06-20 03:45:16 +08:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-13 23:47:17 +08:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_seekbar"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:layout_width="0dp"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_height="match_parent"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:layout_weight="1"
|
2021-03-01 05:18:21 +08:00
|
|
|
android:background="@drawable/reader_seekbar_background"
|
2021-07-03 23:11:34 +08:00
|
|
|
android:clickable="true"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:paddingStart="8dp"
|
2021-07-03 23:11:34 +08:00
|
|
|
android:paddingEnd="8dp"
|
|
|
|
tools:ignore="KeyboardInaccessibleWidget">
|
2021-02-13 23:47:17 +08:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/left_page_text"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2021-06-20 03:45:16 +08:00
|
|
|
android:textColor="?attr/colorOnToolbar"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="1" />
|
|
|
|
|
|
|
|
<!--
|
|
|
|
Wonky way of setting height due to issues with horizontally centering the thumb in Android 5.
|
|
|
|
See https://stackoverflow.com/questions/15701767/android-thumb-is-not-centered-in-seekbar
|
|
|
|
-->
|
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderSeekBar
|
|
|
|
android:id="@+id/page_seekbar"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_weight="1"
|
|
|
|
android:maxHeight="?attr/actionBarSize"
|
|
|
|
android:minHeight="?attr/actionBarSize" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/right_page_text"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2021-06-20 03:45:16 +08:00
|
|
|
android:textColor="?attr/colorOnToolbar"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="15" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/right_chapter"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_marginStart="8dp"
|
2021-02-14 06:00:00 +08:00
|
|
|
android:background="@drawable/reader_seekbar_button"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:contentDescription="@string/action_next_chapter"
|
2021-05-22 22:10:41 +08:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-14 06:00:00 +08:00
|
|
|
app:srcCompat="@drawable/ic_skip_next_24dp"
|
2021-06-20 03:45:16 +08:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-13 23:47:17 +08:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2021-06-26 11:28:19 +08:00
|
|
|
android:id="@+id/toolbar_bottom"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_gravity="bottom"
|
2021-07-03 23:11:34 +08:00
|
|
|
android:background="?attr/colorToolbar"
|
|
|
|
android:clickable="true"
|
|
|
|
tools:ignore="KeyboardInaccessibleWidget">
|
2021-02-13 23:47:17 +08:00
|
|
|
|
2021-03-14 05:47:16 +08:00
|
|
|
<ImageButton
|
2021-03-31 06:27:09 +08:00
|
|
|
android:id="@+id/action_reading_mode"
|
2021-03-14 05:47:16 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 03:45:16 +08:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-03-14 05:47:16 +08:00
|
|
|
android:contentDescription="@string/viewer"
|
2021-05-22 22:10:41 +08:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-04-07 10:31:26 +08:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_crop_borders"
|
2021-03-14 05:47:16 +08:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-03-15 05:13:20 +08:00
|
|
|
app:srcCompat="@drawable/ic_reader_default_24dp"
|
2021-06-20 03:45:16 +08:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-03-14 05:47:16 +08:00
|
|
|
|
2021-02-14 07:50:50 +08:00
|
|
|
<ImageButton
|
2021-04-07 10:31:26 +08:00
|
|
|
android:id="@+id/action_crop_borders"
|
2021-02-14 07:50:50 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 03:45:16 +08:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-04-07 10:31:26 +08:00
|
|
|
android:contentDescription="@string/pref_crop_borders"
|
2021-05-22 22:10:41 +08:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-04-07 10:31:26 +08:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_rotation"
|
2021-03-31 06:27:09 +08:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/action_reading_mode"
|
2021-02-14 07:50:50 +08:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-07 10:31:26 +08:00
|
|
|
app:srcCompat="@drawable/ic_crop_24dp"
|
2021-06-20 03:45:16 +08:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-14 07:50:50 +08:00
|
|
|
|
2021-03-29 04:25:53 +08:00
|
|
|
<ImageButton
|
2021-04-07 10:31:26 +08:00
|
|
|
android:id="@+id/action_rotation"
|
2021-03-29 04:25:53 +08:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 03:45:16 +08:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-04-07 10:31:26 +08:00
|
|
|
android:contentDescription="@string/pref_rotation_type"
|
2021-05-22 22:10:41 +08:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-03-29 04:25:53 +08:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_settings"
|
2021-04-07 10:31:26 +08:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/action_crop_borders"
|
2021-03-29 04:25:53 +08:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-07 10:31:26 +08:00
|
|
|
app:srcCompat="@drawable/ic_screen_rotation_24dp"
|
2021-06-20 03:45:16 +08:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-03-29 04:25:53 +08:00
|
|
|
|
2021-02-13 23:47:17 +08:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_settings"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 03:45:16 +08:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:contentDescription="@string/action_settings"
|
2021-05-22 22:10:41 +08:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 23:47:17 +08:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-04-07 10:31:26 +08:00
|
|
|
app:layout_constraintStart_toEndOf="@id/action_rotation"
|
2021-02-13 23:47:17 +08:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_settings_24dp"
|
2021-06-20 03:45:16 +08:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-13 23:47:17 +08:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2016-06-27 22:46:31 +08:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2015-11-19 04:54:33 +08:00
|
|
|
|
2016-07-08 05:18:22 +08:00
|
|
|
<View
|
|
|
|
android:id="@+id/brightness_overlay"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-01-12 11:13:46 +08:00
|
|
|
android:visibility="gone" />
|
2016-07-08 05:18:22 +08:00
|
|
|
|
2020-12-26 23:40:31 +08:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|