mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 19:25:10 +01:00
328 lines
15 KiB
XML
328 lines
15 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<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/filter_bottom_sheet"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@drawable/bottom_sheet_rounded_background"
|
|
android:forceDarkAllowed="false">
|
|
|
|
<androidx.core.widget.NestedScrollView
|
|
android:id="@+id/settings_scroll_view"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
android:id="@+id/constraint_layout"
|
|
style="@style/BottomSheetDialogTheme"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:background="@android:color/transparent"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/material_component_dialogs_padding_around_content_area"
|
|
android:paddingTop="16dp"
|
|
android:paddingEnd="@dimen/material_component_dialogs_padding_around_content_area">
|
|
|
|
<!-- General preferences -->
|
|
|
|
<TextView
|
|
android:id="@+id/general_prefs"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/general"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:id="@+id/spinner_end"
|
|
android:layout_width="16dp"
|
|
android:layout_height="match_parent"
|
|
app:layout_constraintStart_toEndOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/viewer_for_this_series"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/viewer"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/viewer"
|
|
android:layout_width="0dp"
|
|
android:layout_height="24dp"
|
|
android:layout_marginTop="16dp"
|
|
android:entries="@array/viewers_selector"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintTop_toBottomOf="@id/general_prefs" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/rotation"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/rotation_mode"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/rotation_mode"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:entries="@array/rotation_type"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintTop_toBottomOf="@id/viewer" />
|
|
|
|
<TextView
|
|
android:id="@+id/background_color_label"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/background_color"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/background_color"
|
|
app:layout_constraintEnd_toStartOf="@id/background_color"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/background_color"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:entries="@array/reader_themes"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintTop_toBottomOf="@id/rotation_mode" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/show_page_number"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/show_page_number"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/background_color" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/true_color"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/true_32bit_color"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:visibility="gone"
|
|
app:layout_constraintTop_toBottomOf="@id/show_page_number"
|
|
tools:visibility="visible" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/fullscreen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/fullscreen"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/true_color" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/keepscreen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/keep_screen_on"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/fullscreen" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/always_show_chapter_transition"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/always_show_chapter_transition"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/keepscreen" />
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:id="@+id/end_general_preferences"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/always_show_chapter_transition" />
|
|
|
|
<!-- Pager preferences -->
|
|
|
|
<TextView
|
|
android:id="@+id/pager_prefs"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/paged"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
|
|
|
|
<TextView
|
|
android:id="@+id/zoom_start_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/scale_type"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/scale_type"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/scale_type"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:entries="@array/image_scale_type"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintTop_toBottomOf="@id/pager_prefs" />
|
|
|
|
<TextView
|
|
android:id="@+id/scale_type_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/zoom_start_position"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/zoom_start"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/zoom_start"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:entries="@array/zoom_start"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintTop_toBottomOf="@id/scale_type" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/crop_borders"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/crop_borders"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/zoom_start" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/page_transitions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/page_transitions"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/crop_borders" />
|
|
|
|
<!-- Webtoon preferences -->
|
|
|
|
<TextView
|
|
android:id="@+id/webtoon_prefs"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/webtoon"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/crop_borders_webtoon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/crop_borders"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/webtoon_prefs" />
|
|
|
|
<TextView
|
|
android:id="@+id/webtoon_side_padding_text"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/pref_webtoon_side_padding"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/webtoon_side_padding"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintStart_toStartOf="parent" />
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/webtoon_side_padding"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:entries="@array/webtoon_side_padding"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
app:layout_constraintRight_toRightOf="@id/spinner_end"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintTop_toBottomOf="@id/crop_borders_webtoon" />
|
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
android:id="@+id/webtoon_disable_zoom"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/disable_zoom"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/webtoon_side_padding" />
|
|
|
|
<!-- Groups of preferences -->
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
android:id="@+id/pager_prefs_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
app:constraint_referenced_ids="pager_prefs,scale_type,scale_type_text,
|
|
zoom_start_text,zoom_start,crop_borders,page_transitions,background_color,background_color_label"
|
|
tools:visibility="visible" />
|
|
|
|
<androidx.constraintlayout.widget.Group
|
|
android:id="@+id/webtoon_prefs_group"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:visibility="gone"
|
|
app:constraint_referenced_ids="webtoon_prefs,crop_borders_webtoon,
|
|
webtoon_side_padding_text,webtoon_side_padding,webtoon_disable_zoom" />
|
|
|
|
<androidx.constraintlayout.widget.Guideline
|
|
android:id="@+id/bottom_line"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
app:layout_constraintGuide_percent="0.5" />
|
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
</androidx.core.widget.NestedScrollView>
|
|
|
|
<ImageView
|
|
android:id="@+id/pill"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center|top"
|
|
android:layout_marginTop="5dp"
|
|
android:alpha="0.25"
|
|
android:contentDescription="@string/drag_handle"
|
|
android:src="@drawable/draggable_pill"
|
|
android:tint="?android:attr/textColorPrimary" />
|
|
|
|
<ImageView
|
|
android:id="@+id/close_button"
|
|
android:layout_width="32dp"
|
|
android:layout_height="32dp"
|
|
android:layout_gravity="end"
|
|
android:layout_marginTop="12dp"
|
|
android:layout_marginEnd="12dp"
|
|
android:background="@drawable/round_ripple"
|
|
android:clickable="true"
|
|
android:contentDescription="@string/close"
|
|
android:focusable="true"
|
|
android:src="@drawable/ic_close_24dp"
|
|
android:tint="@color/gray_button" />
|
|
</FrameLayout> |