tachiyomi/app/src/main/res/layout/reader_activity.xml

220 lines
9.7 KiB
XML
Raw Normal View History

<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
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
<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"
android:layout_height="match_parent">
2016-06-27 22:46:31 +08:00
<FrameLayout
android:id="@+id/viewer_container"
2016-06-27 22:46:31 +08:00
android:layout_width="match_parent"
android:layout_height="match_parent" />
2016-06-27 22:46:31 +08:00
<com.google.android.material.progressindicator.CircularProgressIndicator
2016-06-27 22:46:31 +08:00
android:id="@+id/please_wait"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminate="true"
android:visibility="gone"
app:indicatorSize="56dp"
tools:visibility="visible" />
2016-06-27 22:46:31 +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"
android:layout_gravity="bottom|center_horizontal"
android:padding="4dp"
android:textDirection="ltr"
android:textStyle="bold" />
2016-06-27 22:46:31 +08:00
</FrameLayout>
2015-10-21 06:04:04 +08:00
<eu.kanade.tachiyomi.ui.reader.ReaderColorFilterView
android:id="@+id/color_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
<eu.kanade.tachiyomi.ui.reader.ReaderNavigationOverlayView
android:id="@+id/navigation_overlay"
android:layout_width="match_parent"
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"
android:theme="?attr/actionBarTheme"
2016-06-27 22:46:31 +08:00
android:visibility="invisible"
tools:visibility="visible">
<com.google.android.material.appbar.MaterialToolbar
2016-06-27 22:46:31 +08:00
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2021-05-23 00:02:49 +08:00
android:background="?attr/colorPrimary"
android:minHeight="?attr/actionBarSize" />
2016-06-27 22:46:31 +08:00
<LinearLayout
android:id="@+id/reader_menu_bottom"
android:layout_width="match_parent"
android:layout_height="wrap_content"
2016-06-27 22:46:31 +08:00
android:layout_gravity="bottom"
android:orientation="vertical">
2016-06-27 22:46:31 +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"
android:layout_marginStart="8dp"
android:layout_marginEnd="8dp"
android:layout_marginBottom="16dp"
android:layoutDirection="ltr"
android:orientation="horizontal">
<ImageButton
android:id="@+id/left_chapter"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginEnd="8dp"
android:background="@drawable/reader_seekbar_button"
android:contentDescription="@string/action_previous_chapter"
2021-05-22 22:10:41 +08:00
android:padding="@dimen/screen_edge_margin"
app:srcCompat="@drawable/ic_skip_previous_24dp"
app:tint="?attr/colorOnPrimary" />
<LinearLayout
android:id="@+id/reader_seekbar"
android:layout_width="0dp"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="@drawable/reader_seekbar_background"
android:paddingStart="8dp"
android:paddingEnd="8dp">
<TextView
android:id="@+id/left_page_text"
android:layout_width="32dp"
android:layout_height="match_parent"
android:gravity="center"
android:textColor="?attr/colorOnPrimary"
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"
android:textColor="?attr/colorOnPrimary"
android:textSize="15sp"
tools:text="15" />
</LinearLayout>
<ImageButton
android:id="@+id/right_chapter"
android:layout_width="48dp"
android:layout_height="48dp"
android:layout_marginStart="8dp"
android:background="@drawable/reader_seekbar_button"
android:contentDescription="@string/action_next_chapter"
2021-05-22 22:10:41 +08:00
android:padding="@dimen/screen_edge_margin"
app:srcCompat="@drawable/ic_skip_next_24dp"
app:tint="?attr/colorOnPrimary" />
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:layout_gravity="bottom"
android:background="?attr/colorPrimary">
2021-03-14 05:47:16 +08:00
<ImageButton
android:id="@+id/action_reading_mode"
2021-03-14 05:47:16 +08:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/ripple_regular"
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"
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-03-14 05:47:16 +08:00
app:tint="?attr/colorOnPrimary" />
<ImageButton
android:id="@+id/action_crop_borders"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/ripple_regular"
android:contentDescription="@string/pref_crop_borders"
2021-05-22 22:10:41 +08:00
android:padding="@dimen/screen_edge_margin"
app:layout_constraintEnd_toStartOf="@id/action_rotation"
app:layout_constraintStart_toEndOf="@+id/action_reading_mode"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_crop_24dp"
app:tint="?attr/colorOnPrimary" />
2021-03-29 04:25:53 +08:00
<ImageButton
android:id="@+id/action_rotation"
2021-03-29 04:25:53 +08:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/ripple_regular"
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"
app:layout_constraintStart_toEndOf="@+id/action_crop_borders"
2021-03-29 04:25:53 +08:00
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_screen_rotation_24dp"
2021-03-29 04:25:53 +08:00
app:tint="?attr/colorOnPrimary" />
<ImageButton
android:id="@+id/action_settings"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="@drawable/ripple_regular"
android:contentDescription="@string/action_settings"
2021-05-22 22:10:41 +08:00
android:padding="@dimen/screen_edge_margin"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/action_rotation"
app:layout_constraintTop_toTopOf="parent"
app:srcCompat="@drawable/ic_settings_24dp"
app:tint="?attr/colorOnPrimary" />
</androidx.constraintlayout.widget.ConstraintLayout>
2016-06-27 22:46:31 +08:00
</LinearLayout>
</FrameLayout>
<View
android:id="@+id/brightness_overlay"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="gone" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>