2020-04-15 05:56:50 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<eu.kanade.tachiyomi.ui.reader.ReaderChapterSheet xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:id="@+id/chapters_bottom_sheet"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="300dp"
|
2020-04-19 23:28:59 +02:00
|
|
|
android:background="@drawable/bottom_sheet_rounded_background"
|
|
|
|
android:backgroundTint="?colorSecondary"
|
2020-04-15 05:56:50 +02:00
|
|
|
android:orientation="vertical"
|
|
|
|
app:behavior_peekHeight="?attr/actionBarSize"
|
|
|
|
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior">
|
|
|
|
|
2020-04-19 23:57:35 +02:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
|
|
android:id="@+id/topbar_layout"
|
2020-04-15 05:56:50 +02:00
|
|
|
android:layout_width="match_parent"
|
2020-05-08 08:18:57 +02:00
|
|
|
android:clickable="true"
|
|
|
|
android:focusable="true"
|
2020-04-19 23:57:35 +02:00
|
|
|
android:layout_height="wrap_content">
|
2020-04-15 05:56:50 +02:00
|
|
|
|
2020-04-19 23:57:35 +02:00
|
|
|
<ImageView
|
|
|
|
android:id="@+id/pill"
|
2020-04-15 05:56:50 +02:00
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-19 23:57:35 +02:00
|
|
|
android:layout_marginTop="5dp"
|
|
|
|
android:alpha="0.25"
|
|
|
|
android:contentDescription="@string/drag_handle"
|
|
|
|
android:src="@drawable/draggable_pill"
|
2020-04-15 05:56:50 +02:00
|
|
|
android:tint="?actionBarTintColor"
|
2020-04-19 23:57:35 +02:00
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
2020-04-15 05:56:50 +02:00
|
|
|
|
2020-04-19 23:57:35 +02:00
|
|
|
<LinearLayout
|
|
|
|
android:id="@+id/seekbar_layout"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="?attr/actionBarSize"
|
|
|
|
android:layout_gravity="top"
|
|
|
|
android:orientation="horizontal"
|
|
|
|
app:layout_constraintBottom_toBottomOf="parent"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent">
|
2020-04-15 05:56:50 +02:00
|
|
|
|
2020-04-19 23:57:35 +02:00
|
|
|
<ImageButton
|
|
|
|
android:id="@+id/chapters_button"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:background="?selectableItemBackgroundBorderless"
|
|
|
|
android:contentDescription="@string/next"
|
|
|
|
android:padding="@dimen/material_layout_keylines_screen_edge_margin"
|
|
|
|
android:tint="?actionBarTintColor"
|
|
|
|
android:tooltipText="@string/view_chapters"
|
|
|
|
app:srcCompat="@drawable/ic_format_list_numbered_24dp" />
|
|
|
|
|
|
|
|
<!--
|
|
|
|
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="match_parent"
|
|
|
|
android:layout_weight="1" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/page_text"
|
|
|
|
android:layout_width="100dp"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:gravity="center"
|
|
|
|
android:textColor="?actionBarTintColor"
|
2020-04-22 19:31:02 +02:00
|
|
|
android:textSize="15sp"
|
2020-04-19 23:57:35 +02:00
|
|
|
tools:text="100 / 105" />
|
|
|
|
</LinearLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
2020-04-15 05:56:50 +02:00
|
|
|
|
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
|
|
|
android:id="@+id/chapter_recycler"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:alpha="0"
|
2020-05-08 08:18:57 +02:00
|
|
|
android:background="@android:color/transparent"
|
2020-04-15 05:56:50 +02:00
|
|
|
android:clipToPadding="false"
|
2020-04-19 23:57:35 +02:00
|
|
|
tools:listitem="@layout/reader_chapter_item" />
|
2020-04-15 05:56:50 +02:00
|
|
|
</eu.kanade.tachiyomi.ui.reader.ReaderChapterSheet>
|