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"
|
2021-10-01 20:09:36 +08:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:descendantFocusability="blocksDescendants" />
|
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"
|
|
|
|
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"
|
2021-11-14 23:23:44 +08:00
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
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"
|
2021-08-23 07:25:40 +08:00
|
|
|
android:clickable="false"
|
2021-08-15 22:42:45 +08:00
|
|
|
android:focusable="false"
|
2020-02-23 13:07:34 +08:00
|
|
|
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"
|
|
|
|
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-12-17 22:32:42 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
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-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"
|
2022-06-15 10:31:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2022-06-15 10:31:24 +08:00
|
|
|
android:minWidth="32dp"
|
2021-12-17 22:32:42 +08:00
|
|
|
android:textColor="?attr/colorOnSurface"
|
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
|
|
|
|
-->
|
2021-10-03 23:14:49 +08:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderSlider
|
|
|
|
android:id="@+id/page_slider"
|
2021-02-13 23:47:17 +08:00
|
|
|
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"
|
2022-06-15 10:31:24 +08:00
|
|
|
android:layout_width="wrap_content"
|
2021-02-13 23:47:17 +08:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2022-06-15 10:31:24 +08:00
|
|
|
android:minWidth="32dp"
|
2021-12-17 22:32:42 +08:00
|
|
|
android:textColor="?attr/colorOnSurface"
|
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"
|
|
|
|
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-12-17 22:32:42 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
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: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-12-17 22:32:42 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
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-12-17 22:32:42 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
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-12-17 22:32:42 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
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-12-17 22:32:42 +08:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
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>
|