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

357 lines
16 KiB
XML
Raw Normal View History

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
2016-06-27 16:46:31 +02:00
xmlns:tools="http://schemas.android.com/tools"
2020-05-25 04:21:54 +02:00
android:id="@+id/reader_layout"
2016-06-27 16:46:31 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent">
2015-10-21 00:04:04 +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"
android:layout_height="match_parent">
2016-06-27 16:46:31 +02:00
<FrameLayout
android:id="@+id/viewer_container"
2016-06-27 16:46:31 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:descendantFocusability="blocksDescendants" />
2016-06-27 16:46:31 +02:00
<androidx.compose.ui.platform.ComposeView
2016-06-27 16:46:31 +02:00
android:id="@+id/page_number"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="bottom|center_horizontal" />
2016-06-27 16:46:31 +02:00
</FrameLayout>
2015-10-21 00:04:04 +02: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: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
2016-06-27 16:46:31 +02:00
android:id="@+id/reader_menu"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:theme="?attr/actionBarTheme"
2016-06-27 16:46:31 +02:00
android:visibility="invisible"
tools:visibility="visible">
<com.google.android.material.appbar.AppBarLayout
2018-06-10 06:50:17 +02:00
android:id="@+id/header"
2016-06-27 16:46:31 +02:00
android:layout_width="match_parent"
2018-06-10 06:50:17 +02:00
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">
2018-06-10 06:50:17 +02:00
<com.google.android.material.appbar.MaterialToolbar
2018-06-10 06:50:17 +02:00
android:id="@+id/toolbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="?attr/actionBarSize" />
2018-06-10 06:50:17 +02:00
<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
2018-06-10 06:50:17 +02:00
android:id="@+id/eh_autoscroll"
android:layout_width="0dp"
android:layout_height="match_parent"
2018-06-10 06:50:17 +02:00
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" />
2018-06-10 06:50:17 +02:00
<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"
2018-06-10 06:50:17 +02:00
android:inputType="numberDecimal"
android:maxLength="10"
android:singleLine="true" />
2018-06-10 06:50:17 +02:00
<Button
android:id="@+id/eh_autoscroll_help"
2021-12-13 02:39:00 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="50dp"
android:layout_height="match_parent"
2021-09-12 18:09:11 +02:00
android:text="\?"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
2018-06-10 06:50:17 +02:00
</LinearLayout>
2018-06-10 18:15:15 +02:00
<LinearLayout
android:layout_width="match_parent"
android:layout_height="0dp"
2018-06-10 18:15:15 +02:00
android:layout_weight="1"
android:orientation="horizontal">
<Button
android:id="@+id/eh_retry_all"
2021-12-13 02:39:00 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-06-10 18:15:15 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-06-10 18:15:15 +02:00
android:layout_weight="1"
android:fontFamily="sans-serif"
android:text="@string/eh_retry_all"
android:textColor="?attr/colorOnSurface"
android:textSize="13sp" />
2018-06-10 18:15:15 +02:00
<Button
android:id="@+id/eh_retry_all_help"
2021-12-13 02:39:00 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="50dp"
android:layout_height="match_parent"
2021-09-12 18:09:11 +02:00
android:text="\?"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
2018-06-10 18:15:15 +02:00
<Button
android:id="@+id/eh_boost_page"
2021-12-13 02:39:00 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-06-10 18:15:15 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2018-06-10 18:15:15 +02:00
android:layout_weight="1"
android:fontFamily="sans-serif"
android:text="@string/eh_boost_page"
android:textColor="?attr/colorOnSurface"
android:textSize="13sp" />
2018-06-10 18:15:15 +02:00
<Button
android:id="@+id/eh_boost_page_help"
2021-12-13 02:39:00 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
android:layout_width="50dp"
android:layout_height="match_parent"
2021-09-12 18:09:11 +02:00
android:text="\?"
android:textColor="?attr/colorOnSurface"
android:textSize="15sp"
android:textStyle="bold"
tools:ignore="HardcodedText" />
2018-06-10 18:15:15 +02:00
</LinearLayout>
2018-06-10 06:50:17 +02:00
</LinearLayout>
<ImageButton
android:id="@+id/expand_eh_button"
2021-12-13 02:39:00 +01:00
style="@style/Widget.MaterialComponents.Button.TextButton"
2018-06-10 06:50:17 +02:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="0dp"
2021-09-12 18:09:11 +02:00
app:srcCompat="@drawable/ic_keyboard_arrow_down_white_32dp"
app:tint="?attr/colorOnSurface" />
</com.google.android.material.appbar.AppBarLayout>
2016-06-27 16:46:31 +02:00
<androidx.constraintlayout.widget.Guideline
android:id="@+id/above_guideline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.3"
app:layout_constraintTop_toBottomOf="@id/header"/>
<RelativeLayout
android:id="@+id/seekbar_vert_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:orientation="horizontal"
2021-07-04 20:10:25 +02:00
app:layout_constraintBottom_toTopOf="@id/below_guideline"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@id/above_guideline"
tools:ignore="NotSibling">
<androidx.compose.ui.platform.ComposeView
android:id="@+id/reader_nav_vert"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_alignParentEnd="true"
android:layout_centerVertical="true"
android:gravity="center"/>
</RelativeLayout>
2021-07-04 20:10:25 +02:00
<androidx.constraintlayout.widget.Guideline
android:id="@+id/below_guideline"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
app:layout_constraintGuide_percent="0.85"
app:layout_constraintBottom_toTopOf="@id/reader_menu_bottom"/>
<LinearLayout
android:id="@+id/reader_menu_bottom"
android:layout_width="match_parent"
2021-01-06 09:06:14 +01:00
android:layout_height="wrap_content"
android:layout_gravity="bottom"
android:orientation="vertical"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent">
<androidx.compose.ui.platform.ComposeView
android:id="@+id/reader_nav_horz"
2021-01-06 09:06:14 +01:00
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="16dp"
android:layoutDirection="ltr" />
2021-01-06 09:06:14 +01:00
<LinearLayout
android:id="@+id/toolbar_bottom"
2021-01-06 09:06:14 +01:00
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
2021-01-06 09:06:14 +01:00
android:layout_gravity="bottom"
android:clickable="true"
tools:ignore="KeyboardInaccessibleWidget">
2021-01-06 09:06:14 +01:00
<ImageButton
android:id="@+id/action_chapter_list"
2021-01-06 09:06:14 +01:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="1"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/chapters"
android:padding="@dimen/screen_edge_margin"
app:srcCompat="@drawable/ic_format_list_numbered_24dp"
app:tint="?attr/colorOnSurface" />
2021-01-06 09:06:14 +01:00
<ImageButton
2021-03-09 04:44:31 +01:00
android:id="@+id/action_web_view"
2021-01-06 09:06:14 +01:00
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_open_in_web_view"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_webview_24dp"
app:tint="?attr/colorOnSurface" />
2021-01-06 09:06:14 +01:00
<ImageButton
android:id="@+id/action_share"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_share"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_share_24dp"
app:tint="?attr/colorOnSurface" />
<ImageButton
android:id="@+id/action_reading_mode"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/viewer"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_reader_default_24dp"
app:tint="?attr/colorOnSurface" />
<ImageButton
android:id="@+id/action_crop_borders"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pref_crop_borders"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_crop_24dp"
app:tint="?attr/colorOnSurface" />
<ImageButton
android:id="@+id/action_rotation"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/pref_rotation_type"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_screen_rotation_24dp"
app:tint="?attr/colorOnSurface" />
<ImageButton
android:id="@+id/double_page"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/page_layout"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_book_open_variant_24dp"
app:tint="?attr/colorOnSurface" />
<ImageButton
android:id="@+id/shift_page_button"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/shift_double_pages"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_page_next_outline_24dp"
app:tint="?attr/colorOnSurface" />
<ImageButton
android:id="@+id/action_settings"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:background="?attr/selectableItemBackgroundBorderless"
android:contentDescription="@string/action_settings"
android:padding="@dimen/screen_edge_margin"
android:layout_weight="1"
app:srcCompat="@drawable/ic_settings_24dp"
app:tint="?attr/colorOnSurface" />
</LinearLayout>
2021-01-06 09:06:14 +01:00
</LinearLayout>
</androidx.constraintlayout.widget.ConstraintLayout>
2020-08-22 23:26:03 +02:00
<androidx.compose.ui.platform.ComposeView
android:id="@+id/dialog_root"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>