(cherry picked from commit 7c012010558d5e7a2ea32a8aaef3c908fdc52799) # Conflicts: # app/src/main/java/eu/kanade/tachiyomi/ui/reader/ReaderActivity.kt # app/src/main/res/layout/reader_activity.xml
191 lines
8.1 KiB
XML
Executable file
191 lines
8.1 KiB
XML
Executable file
<FrameLayout 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/reader_layout"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/reader_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent">
|
|
|
|
<FrameLayout
|
|
android:id="@+id/viewer_container"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:descendantFocusability="blocksDescendants" />
|
|
|
|
<androidx.compose.ui.platform.ComposeView
|
|
android:id="@+id/page_number"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom|center_horizontal" />
|
|
|
|
</FrameLayout>
|
|
|
|
<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:clickable="false"
|
|
android:focusable="false"
|
|
android:visibility="gone" />
|
|
|
|
<View
|
|
android:id="@+id/brightness_overlay"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:visibility="gone" />
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/reader_menu"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:theme="?attr/actionBarTheme"
|
|
android:visibility="invisible"
|
|
tools:visibility="visible">
|
|
|
|
<com.google.android.material.appbar.AppBarLayout
|
|
android:id="@+id/header"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:animateLayoutChanges="true"
|
|
app:elevation="0dp"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent">
|
|
|
|
<com.google.android.material.appbar.MaterialToolbar
|
|
android:id="@+id/toolbar"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:minHeight="?attr/actionBarSize" />
|
|
|
|
<LinearLayout
|
|
android:id="@+id/eh_utils"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="vertical"
|
|
android:visibility="gone"
|
|
tools:visibility="visible">
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:orientation="horizontal">
|
|
|
|
<com.google.android.material.materialswitch.MaterialSwitch
|
|
android:id="@+id/eh_autoscroll"
|
|
android:layout_width="0dp"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:paddingHorizontal="16dp"
|
|
android:paddingVertical="16dp"
|
|
android:text="@string/eh_autoscroll"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="13sp" />
|
|
|
|
<EditText
|
|
android:id="@+id/eh_autoscroll_freq"
|
|
android:layout_width="100dp"
|
|
android:layout_height="match_parent"
|
|
android:backgroundTint="?attr/colorAccent"
|
|
android:gravity="center_horizontal|center_vertical"
|
|
android:importantForAutofill="no"
|
|
android:inputType="numberDecimal"
|
|
android:maxLength="10"
|
|
android:singleLine="true" />
|
|
|
|
<Button
|
|
android:id="@+id/eh_autoscroll_help"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="50dp"
|
|
android:layout_height="match_parent"
|
|
android:text="\?"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
</LinearLayout>
|
|
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
android:layout_weight="1"
|
|
android:orientation="horizontal">
|
|
|
|
<Button
|
|
android:id="@+id/eh_retry_all"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:fontFamily="sans-serif"
|
|
android:text="@string/eh_retry_all"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="13sp" />
|
|
|
|
<Button
|
|
android:id="@+id/eh_retry_all_help"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="50dp"
|
|
android:layout_height="match_parent"
|
|
android:text="\?"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
|
|
<Button
|
|
android:id="@+id/eh_boost_page"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent"
|
|
android:layout_weight="1"
|
|
android:fontFamily="sans-serif"
|
|
android:text="@string/eh_boost_page"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="13sp" />
|
|
|
|
<Button
|
|
android:id="@+id/eh_boost_page_help"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="50dp"
|
|
android:layout_height="match_parent"
|
|
android:text="\?"
|
|
android:textColor="?attr/colorOnSurface"
|
|
android:textSize="15sp"
|
|
android:textStyle="bold"
|
|
tools:ignore="HardcodedText" />
|
|
</LinearLayout>
|
|
|
|
</LinearLayout>
|
|
|
|
<ImageButton
|
|
android:id="@+id/expand_eh_button"
|
|
style="@style/Widget.MaterialComponents.Button.TextButton"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:padding="0dp"
|
|
app:srcCompat="@drawable/ic_keyboard_arrow_down_white_32dp"
|
|
app:tint="?attr/colorOnSurface" />
|
|
|
|
</com.google.android.material.appbar.AppBarLayout>
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
|
|
<androidx.compose.ui.platform.ComposeView
|
|
android:id="@+id/dialog_root"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="match_parent" />
|
|
|
|
</FrameLayout>
|