2018-09-01 17:12:59 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-02-22 00:43:50 +01:00
|
|
|
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-09-01 17:12:59 +02:00
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
android:clipToPadding="false"
|
|
|
|
android:orientation="vertical"
|
2020-03-28 21:32:34 +01:00
|
|
|
android:paddingStart="24dp"
|
|
|
|
android:paddingTop="0dp"
|
|
|
|
android:paddingEnd="24dp"
|
|
|
|
android:paddingBottom="24dp">
|
|
|
|
|
|
|
|
<ImageView
|
|
|
|
android:id="@id/pull_up_bar"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="24dp"
|
|
|
|
android:alpha="0.5"
|
|
|
|
android:scaleType="fitCenter"
|
|
|
|
android:src="@drawable/ic_drag_pill_24dp"
|
|
|
|
android:tint="?attr/colorOnBackground"
|
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<android.widget.Space
|
|
|
|
android:id="@+id/spinner_end"
|
|
|
|
android:layout_width="16dp"
|
|
|
|
android:layout_height="0dp"
|
|
|
|
app:layout_constraintStart_toEndOf="parent" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-05-02 16:41:56 +02:00
|
|
|
<!-- Series-specific preferences -->
|
2018-09-01 17:12:59 +02:00
|
|
|
|
|
|
|
<TextView
|
2020-05-02 16:41:56 +02:00
|
|
|
android:id="@+id/series_prefs"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-02 16:41:56 +02:00
|
|
|
android:text="@string/pref_category_for_this_series"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:textStyle="bold"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2020-03-28 21:32:34 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@+id/pull_up_bar" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/viewer_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-02 16:41:56 +02:00
|
|
|
android:text="@string/viewer"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/viewer"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/verticalcenter"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/viewer"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="24dp"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:entries="@array/viewers_selector"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/verticalcenter"
|
2020-05-02 16:41:56 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/series_prefs" />
|
|
|
|
|
|
|
|
<!-- General preferences -->
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/general_prefs"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="32dp"
|
|
|
|
android:text="@string/pref_category_general"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:textStyle="bold"
|
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
|
|
app:layout_constraintTop_toBottomOf="@+id/viewer" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/rotation_mode_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:text="@string/pref_rotation_type"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/rotation_mode"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/verticalcenter"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/rotation_mode"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:entries="@array/rotation_type"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/verticalcenter"
|
2020-05-02 16:41:56 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/general_prefs" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/background_color_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_reader_theme"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/background_color"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/background_color"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/background_color"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:entries="@array/reader_themes"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/verticalcenter"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/rotation_mode" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/show_page_number"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:text="@string/pref_show_page_number"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/background_color" />
|
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/fullscreen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_fullscreen"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2020-05-02 16:41:56 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/show_page_number" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2020-02-17 16:40:49 +01:00
|
|
|
android:id="@+id/cutout_short"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_cutout_short"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/fullscreen" />
|
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/keepscreen"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_keep_screen_on"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2020-02-17 16:40:49 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/cutout_short" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2019-03-14 17:32:08 +01:00
|
|
|
android:id="@+id/long_tap"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_read_with_long_tap"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/keepscreen" />
|
|
|
|
|
2020-05-02 16:41:56 +02:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
|
|
|
android:id="@+id/true_color"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_true_color"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
android:visibility="gone"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/long_tap"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2020-03-09 19:36:29 +01:00
|
|
|
android:id="@+id/always_show_chapter_transition"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_always_show_chapter_transition"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
2020-05-02 16:41:56 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/true_color" />
|
2020-03-09 19:36:29 +01:00
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<android.widget.Space
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/end_general_preferences"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="0dp"
|
2020-03-09 19:36:29 +01:00
|
|
|
app:layout_constraintBottom_toBottomOf="@id/always_show_chapter_transition" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
|
|
|
<!-- Pager preferences -->
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/pager_prefs"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-05-02 16:41:56 +02:00
|
|
|
android:layout_marginTop="24dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:text="@string/pager_viewer"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:textStyle="bold"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-09-01 17:12:59 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
|
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/scale_type_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_image_scale_type"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/scale_type"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/verticalcenter"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/scale_type"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:entries="@array/image_scale_type"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/verticalcenter"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/pager_prefs" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
|
|
|
<TextView
|
|
|
|
android:id="@+id/zoom_start_text"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_zoom_start"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/zoom_start"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintEnd_toStartOf="@id/verticalcenter"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/zoom_start"
|
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="20dp"
|
2020-02-22 00:43:50 +01:00
|
|
|
android:entries="@array/zoom_start"
|
|
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toEndOf="@id/verticalcenter"
|
2020-02-22 00:43:50 +01:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/scale_type" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/crop_borders"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="10dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:text="@string/pref_crop_borders"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/zoom_start" />
|
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/page_transitions"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:text="@string/pref_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"
|
2020-05-02 16:41:56 +02:00
|
|
|
android:layout_marginTop="24dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:text="@string/webtoon_viewer"
|
|
|
|
android:textColor="?attr/colorAccent"
|
|
|
|
android:textStyle="bold"
|
2020-01-10 01:10:55 +01:00
|
|
|
app:layout_constraintStart_toStartOf="parent"
|
2018-09-01 17:12:59 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
|
|
|
|
|
2020-03-12 00:08:57 +01:00
|
|
|
<com.google.android.material.switchmaterial.SwitchMaterial
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/crop_borders_webtoon"
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
android:layout_height="wrap_content"
|
2020-03-12 00:08:57 +01:00
|
|
|
android:layout_marginTop="8dp"
|
2018-09-01 17:12:59 +02:00
|
|
|
android:text="@string/pref_crop_borders"
|
|
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
|
|
app:layout_constraintTop_toBottomOf="@id/webtoon_prefs" />
|
|
|
|
|
2019-12-01 03:37:52 +01:00
|
|
|
<TextView
|
2020-04-10 17:45:30 +02:00
|
|
|
android:id="@+id/webtoon_side_padding_text"
|
2019-12-01 03:37:52 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
2020-04-10 17:45:30 +02:00
|
|
|
android:text="@string/pref_webtoon_side_padding"
|
2020-04-18 20:47:22 +02:00
|
|
|
app:layout_constraintBaseline_toBaselineOf="@id/webtoon_side_padding"
|
2019-12-01 03:37:52 +01:00
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
2020-04-18 20:47:22 +02:00
|
|
|
app:layout_constraintRight_toLeftOf="@id/verticalcenter" />
|
2019-12-01 03:37:52 +01:00
|
|
|
|
2020-04-10 17:14:09 +02:00
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
2020-04-10 17:45:30 +02:00
|
|
|
android:id="@+id/webtoon_side_padding"
|
2019-12-01 03:37:52 +01:00
|
|
|
android:layout_width="0dp"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:layout_marginTop="16dp"
|
2020-04-10 17:45:30 +02:00
|
|
|
android:entries="@array/webtoon_side_padding"
|
2019-12-01 03:37:52 +01:00
|
|
|
app:layout_constraintLeft_toRightOf="@id/verticalcenter"
|
|
|
|
app:layout_constraintRight_toRightOf="@id/spinner_end"
|
2020-04-18 20:47:22 +02:00
|
|
|
app:layout_constraintTop_toBottomOf="@id/crop_borders_webtoon" />
|
2019-12-01 03:37:52 +01:00
|
|
|
|
2018-09-01 17:12:59 +02:00
|
|
|
<!-- Groups of preferences -->
|
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.constraintlayout.widget.Group
|
2018-09-01 17:12:59 +02:00
|
|
|
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_text,scale_type,zoom_start_text,zoom_start,crop_borders,page_transitions"
|
|
|
|
tools:visibility="visible" />
|
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.constraintlayout.widget.Group
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/webtoon_prefs_group"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:visibility="gone"
|
2020-04-10 17:45:30 +02:00
|
|
|
app:constraint_referenced_ids="webtoon_prefs,crop_borders_webtoon,webtoon_side_padding_text,webtoon_side_padding" />
|
2018-09-01 17:12:59 +02:00
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
<androidx.constraintlayout.widget.Guideline
|
2018-09-01 17:12:59 +02:00
|
|
|
android:id="@+id/verticalcenter"
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
android:orientation="vertical"
|
|
|
|
app:layout_constraintGuide_percent="0.5" />
|
|
|
|
|
2020-01-05 17:29:27 +01:00
|
|
|
</androidx.constraintlayout.widget.ConstraintLayout>
|