2020-12-26 16:40:31 +01:00
|
|
|
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2020-01-12 04:13:46 +01: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"
|
2020-01-12 04:13:46 +01:00
|
|
|
android:layout_height="match_parent" />
|
2016-06-27 16:46:31 +02:00
|
|
|
|
2020-12-26 17:24:10 +01:00
|
|
|
<com.google.android.material.progressindicator.CircularProgressIndicator
|
2016-06-27 16:46:31 +02:00
|
|
|
android:id="@+id/please_wait"
|
2020-12-26 17:24:10 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:layout_gravity="center"
|
2020-12-26 17:24:10 +01:00
|
|
|
android:indeterminate="true"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:visibility="gone"
|
2020-12-26 17:24:10 +01:00
|
|
|
app:indicatorSize="56dp"
|
2020-01-12 04:13:46 +01:00
|
|
|
tools:visibility="visible" />
|
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"
|
|
|
|
style="@style/TextAppearance.Regular.Caption"
|
|
|
|
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"
|
2020-05-31 17:19:09 +02: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-26 04:10:22 +01:00
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
|
2020-02-23 06:07:34 +01: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 06:07:34 +01:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
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-13 00:14:43 +01: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 14:59:23 +02:00
|
|
|
android:layout_height="wrap_content"
|
2021-05-22 18:02:49 +02: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 16:47:17 +01:00
|
|
|
android:layout_height="wrap_content"
|
2016-06-27 16:46:31 +02:00
|
|
|
android:layout_gravity="bottom"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:orientation="vertical">
|
2016-06-27 16:46:31 +02:00
|
|
|
|
2021-02-13 16:47:17 +01: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 16:47:17 +01:00
|
|
|
android:layout_marginStart="8dp"
|
|
|
|
android:layout_marginEnd="8dp"
|
|
|
|
android:layout_marginBottom="16dp"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:layoutDirection="ltr"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:orientation="horizontal">
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/left_chapter"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:layout_marginEnd="8dp"
|
2021-02-28 22:18:21 +01:00
|
|
|
android:background="@drawable/reader_seekbar_button"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:contentDescription="@string/action_previous_chapter"
|
2021-05-22 16:10:41 +02:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 23:00:00 +01:00
|
|
|
app:srcCompat="@drawable/ic_skip_previous_24dp"
|
2021-06-19 21:45:16 +02:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-13 16:47:17 +01:00
|
|
|
|
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/reader_seekbar"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:layout_width="0dp"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:layout_height="match_parent"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:layout_weight="1"
|
2021-02-28 22:18:21 +01:00
|
|
|
android:background="@drawable/reader_seekbar_background"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:paddingStart="8dp"
|
|
|
|
android:paddingEnd="8dp">
|
2021-02-13 16:47:17 +01:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/left_page_text"
|
|
|
|
android:layout_width="32dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
2021-06-19 21:45:16 +02:00
|
|
|
android:textColor="?attr/colorOnToolbar"
|
2021-02-13 16:47:17 +01: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-19 21:45:16 +02:00
|
|
|
android:textColor="?attr/colorOnToolbar"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:textSize="15sp"
|
|
|
|
tools:text="15" />
|
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/right_chapter"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:layout_width="48dp"
|
|
|
|
android:layout_height="48dp"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:layout_marginStart="8dp"
|
2021-02-13 23:00:00 +01:00
|
|
|
android:background="@drawable/reader_seekbar_button"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:contentDescription="@string/action_next_chapter"
|
2021-05-22 16:10:41 +02:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 23:00:00 +01:00
|
|
|
app:srcCompat="@drawable/ic_skip_next_24dp"
|
2021-06-19 21:45:16 +02:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-13 16:47:17 +01:00
|
|
|
|
|
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
2021-06-26 05:28:19 +02:00
|
|
|
android:id="@+id/toolbar_bottom"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_gravity="bottom"
|
2021-06-19 21:45:16 +02:00
|
|
|
android:background="?attr/colorToolbar">
|
2021-02-13 16:47:17 +01:00
|
|
|
|
2021-03-13 22:47:16 +01:00
|
|
|
<ImageButton
|
2021-03-31 00:27:09 +02:00
|
|
|
android:id="@+id/action_reading_mode"
|
2021-03-13 22:47:16 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-19 21:45:16 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-03-13 22:47:16 +01:00
|
|
|
android:contentDescription="@string/viewer"
|
2021-05-22 16:10:41 +02:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-04-07 04:31:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_crop_borders"
|
2021-03-13 22:47:16 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-03-14 22:13:20 +01:00
|
|
|
app:srcCompat="@drawable/ic_reader_default_24dp"
|
2021-06-19 21:45:16 +02:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-03-13 22:47:16 +01:00
|
|
|
|
2021-02-14 00:50:50 +01:00
|
|
|
<ImageButton
|
2021-04-07 04:31:26 +02:00
|
|
|
android:id="@+id/action_crop_borders"
|
2021-02-14 00:50:50 +01:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-19 21:45:16 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-04-07 04:31:26 +02:00
|
|
|
android:contentDescription="@string/pref_crop_borders"
|
2021-05-22 16:10:41 +02:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-04-07 04:31:26 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_rotation"
|
2021-03-31 00:27:09 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/action_reading_mode"
|
2021-02-14 00:50:50 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-07 04:31:26 +02:00
|
|
|
app:srcCompat="@drawable/ic_crop_24dp"
|
2021-06-19 21:45:16 +02:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-14 00:50:50 +01:00
|
|
|
|
2021-03-28 22:25:53 +02:00
|
|
|
<ImageButton
|
2021-04-07 04:31:26 +02:00
|
|
|
android:id="@+id/action_rotation"
|
2021-03-28 22:25:53 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-19 21:45:16 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-04-07 04:31:26 +02:00
|
|
|
android:contentDescription="@string/pref_rotation_type"
|
2021-05-22 16:10:41 +02:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-03-28 22:25:53 +02:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/action_settings"
|
2021-04-07 04:31:26 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@+id/action_crop_borders"
|
2021-03-28 22:25:53 +02:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
2021-04-07 04:31:26 +02:00
|
|
|
app:srcCompat="@drawable/ic_screen_rotation_24dp"
|
2021-06-19 21:45:16 +02:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-03-28 22:25:53 +02:00
|
|
|
|
2021-02-13 16:47:17 +01:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/action_settings"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="match_parent"
|
2021-06-19 21:45:16 +02:00
|
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
2021-02-13 16:47:17 +01:00
|
|
|
android:contentDescription="@string/action_settings"
|
2021-05-22 16:10:41 +02:00
|
|
|
android:padding="@dimen/screen_edge_margin"
|
2021-02-13 16:47:17 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
2021-04-07 04:31:26 +02:00
|
|
|
app:layout_constraintStart_toEndOf="@id/action_rotation"
|
2021-02-13 16:47:17 +01:00
|
|
|
app:layout_constraintTop_toTopOf="parent"
|
|
|
|
app:srcCompat="@drawable/ic_settings_24dp"
|
2021-06-19 21:45:16 +02:00
|
|
|
app:tint="?attr/colorOnToolbar" />
|
2021-02-13 16:47:17 +01: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-12 04:13:46 +01:00
|
|
|
android:visibility="gone" />
|
2016-07-07 23:18:22 +02:00
|
|
|
|
2020-12-26 16:40:31 +01:00
|
|
|
</androidx.coordinatorlayout.widget.CoordinatorLayout>
|