2020-12-26 16:40:31 +01:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-01-11 22:13:46 -05:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
2016-06-27 16:46:31 +02:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center">
|
2015-10-21 00:04:04 +02:00
|
|
|
|
2015-10-24 16:04:42 +02:00
|
|
|
<FrameLayout
|
2016-06-27 16:46:31 +02:00
|
|
|
android:id="@+id/reader_container"
|
2015-10-21 00:04:04 +02:00
|
|
|
android:layout_width="match_parent"
|
2015-11-18 21:54:33 +01:00
|
|
|
android:layout_height="match_parent">
|
2016-06-27 16:46:31 +02:00
|
|
|
|
|
|
|
<FrameLayout
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/viewer_container"
|
2016-06-27 16:46:31 +02:00
|
|
|
android:layout_width="match_parent"
|
2021-10-01 19:09:36 +07:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:descendantFocusability="blocksDescendants" />
|
2016-06-27 16:46:31 +02:00
|
|
|
|
2017-11-18 14:09:28 +01:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.PageIndicatorTextView
|
2016-06-27 16:46:31 +02:00
|
|
|
android:id="@+id/page_number"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2017-11-18 14:09:28 +01:00
|
|
|
android:layout_gravity="bottom|center_horizontal"
|
|
|
|
android:padding="4dp"
|
2021-11-14 22:23:44 +07:00
|
|
|
android:textAppearance="?attr/textAppearanceBodySmall"
|
2020-05-31 11:19:09 -04:00
|
|
|
android:textDirection="ltr"
|
2017-11-20 13:55:50 +01:00
|
|
|
android:textStyle="bold" />
|
2016-06-27 16:46:31 +02:00
|
|
|
|
2015-10-24 16:04:42 +02:00
|
|
|
</FrameLayout>
|
2015-10-21 00:04:04 +02:00
|
|
|
|
2021-03-25 23:10:22 -04:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
|
2020-02-23 00:07:34 -05:00
|
|
|
android:id="@+id/color_overlay"
|
|
|
|
android:layout_width="match_parent"
|
2021-03-20 20:36:01 +01: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 00:07:34 -05:00
|
|
|
android:layout_height="match_parent"
|
2021-08-22 19:25:40 -04:00
|
|
|
android:clickable="false"
|
2021-08-15 10:42:45 -04:00
|
|
|
android:focusable="false"
|
2020-02-23 00:07:34 -05:00
|
|
|
android:visibility="gone" />
|
|
|
|
|
2016-06-27 16:46:31 +02:00
|
|
|
<FrameLayout
|
|
|
|
android:id="@+id/reader_menu"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:theme="?attr/actionBarTheme"
|
2016-06-27 16:46:31 +02:00
|
|
|
android:visibility="invisible"
|
|
|
|
tools:visibility="visible">
|
|
|
|
|
2020-03-12 19:14:43 -04:00
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
2016-06-27 16:46:31 +02:00
|
|
|
android:id="@+id/toolbar"
|
|
|
|
android:layout_width="match_parent"
|
2021-04-14 08:59:23 -04:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-22 12:02:49 -04:00
|
|
|
android:minHeight="?attr/actionBarSize" />
|
2016-06-27 16:46:31 +02:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_menu_bottom"
|
|
|
|
android:layout_width="match_parent"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_height="wrap_content"
|
2016-06-27 16:46:31 +02:00
|
|
|
android:layout_gravity="bottom"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:orientation="vertical">
|
2016-06-27 16:46:31 +02:00
|
|
|
|
2021-02-13 10:47:17 -05:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_nav"
|
|
|
|
android:layout_width="match_parent"
|
2016-06-27 16:46:31 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2021-02-13 17:00:00 -05:00
|
|
|
android:layoutDirection="ltr"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/left_chapter"
|
2021-02-13 17:00:00 -05:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:contentDescription="@string/action_previous_chapter"
|
2021-05-22 21:10:41 +07:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 17:00:00 -05:00
|
|
|
app:srcCompat="@drawable/ic_skip_previous_24dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-02-13 10:47:17 -05:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_seekbar"
|
2021-02-13 17:00:00 -05:00
|
|
|
android:layout_width="0dp"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_height="match_parent"
|
2021-02-13 17:00:00 -05:00
|
|
|
android:layout_weight="1"
|
2021-07-03 11:11:34 -04:00
|
|
|
android:clickable="true"
|
2021-02-13 17:00:00 -05:00
|
|
|
android:paddingStart="8dp"
|
2021-07-03 11:11:34 -04:00
|
|
|
android:paddingEnd="8dp"
|
|
|
|
tools:ignore="KeyboardInaccessibleWidget">
|
2021-02-13 10:47:17 -05:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/left_page_text"
|
2022-06-14 22:31:24 -04:00
|
|
|
android:layout_width="wrap_content"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2022-06-14 22:31:24 -04:00
|
|
|
android:minWidth="32dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
android:textColor="?attr/colorOnSurface"
|
2021-02-13 10:47:17 -05: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 11:14:49 -04:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderSlider
|
|
|
|
android:id="@+id/page_slider"
|
2021-02-13 10:47:17 -05: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-14 22:31:24 -04:00
|
|
|
android:layout_width="wrap_content"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2022-06-14 22:31:24 -04:00
|
|
|
android:minWidth="32dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
android:textColor="?attr/colorOnSurface"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="15" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/right_chapter"
|
2021-02-13 17:00:00 -05:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:contentDescription="@string/action_next_chapter"
|
2021-05-22 21:10:41 +07:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 17:00:00 -05:00
|
|
|
app:srcCompat="@drawable/ic_skip_next_24dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-02-13 10:47:17 -05:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2021-06-26 10:28:19 +07:00
|
|
|
android:id="@+id/toolbar_bottom"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_gravity="bottom"
|
2021-07-03 11:11:34 -04:00
|
|
|
android:clickable="true"
|
|
|
|
tools:ignore="KeyboardInaccessibleWidget">
|
2021-02-13 10:47:17 -05:00
|
|
|
|
2021-03-13 16:47:16 -05:00
|
|
|
<ImageButton
|
2021-03-30 18:27:09 -04:00
|
|
|
android:id="@+id/action_reading_mode"
|
2021-03-13 16:47:16 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 02:45:16 +07:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-03-13 16:47:16 -05:00
|
|
|
android:contentDescription="@string/viewer"
|
2021-05-22 21:10:41 +07:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-04-06 22:31:26 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_crop_borders"
|
2021-03-13 16:47:16 -05:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-03-14 17:13:20 -04:00
|
|
|
app:srcCompat="@drawable/ic_reader_default_24dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-03-13 16:47:16 -05:00
|
|
|
|
2021-02-13 18:50:50 -05:00
|
|
|
<ImageButton
|
2021-04-06 22:31:26 -04:00
|
|
|
android:id="@+id/action_crop_borders"
|
2021-02-13 18:50:50 -05:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 02:45:16 +07:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-04-06 22:31:26 -04:00
|
|
|
android:contentDescription="@string/pref_crop_borders"
|
2021-05-22 21:10:41 +07:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-04-06 22:31:26 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_rotation"
|
2021-03-30 18:27:09 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/action_reading_mode"
|
2021-02-13 18:50:50 -05:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-06 22:31:26 -04:00
|
|
|
app:srcCompat="@drawable/ic_crop_24dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-02-13 18:50:50 -05:00
|
|
|
|
2021-03-28 16:25:53 -04:00
|
|
|
<ImageButton
|
2021-04-06 22:31:26 -04:00
|
|
|
android:id="@+id/action_rotation"
|
2021-03-28 16:25:53 -04:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 02:45:16 +07:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-04-06 22:31:26 -04:00
|
|
|
android:contentDescription="@string/pref_rotation_type"
|
2021-05-22 21:10:41 +07:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-03-28 16:25:53 -04:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_settings"
|
2021-04-06 22:31:26 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/action_crop_borders"
|
2021-03-28 16:25:53 -04:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-06 22:31:26 -04:00
|
|
|
app:srcCompat="@drawable/ic_screen_rotation_24dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-03-28 16:25:53 -04:00
|
|
|
|
2021-02-13 10:47:17 -05:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_settings"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-20 02:45:16 +07:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-02-13 10:47:17 -05:00
|
|
|
android:contentDescription="@string/action_settings"
|
2021-05-22 21:10:41 +07:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 10:47:17 -05:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-04-06 22:31:26 -04:00
|
|
|
app:layout_constraintStart_toEndOf="@id/action_rotation"
|
2021-02-13 10:47:17 -05:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_settings_24dp"
|
2021-12-17 21:32:42 +07:00
|
|
|
app:tint="?attr/colorOnSurface" />
|
2021-02-13 10:47:17 -05:00
|
|
|
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2016-06-27 16:46:31 +02:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
</FrameLayout>
|
2015-11-18 21:54:33 +01:00
|
|
|
|
2016-07-07 23:18:22 +02:00
|
|
|
<View
|
|
|
|
android:id="@+id/brightness_overlay"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
2020-01-11 22:13:46 -05:00
|
|
|
android:visibility="gone" />
|
2016-07-07 23:18:22 +02:00
|
|
|
|
2020-12-26 16:40:31 +01:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|