mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-15 13:45:06 +01:00
dc1fe311f8
And more layout fixes of course
276 lines
11 KiB
XML
276 lines
11 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.constraintlayout.widget.ConstraintLayout
|
|
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/constraint_layout"
|
|
android:layout_width="match_parent"
|
|
style="@style/BottomSheetDialogTheme"
|
|
android:background="@drawable/bg_bottom_sheet_dialog_fragment"
|
|
android:layout_height="wrap_content"
|
|
android:clipToPadding="false"
|
|
android:orientation="vertical"
|
|
android:paddingStart="@dimen/material_component_dialogs_padding_around_content_area"
|
|
android:paddingEnd="@dimen/material_component_dialogs_padding_around_content_area"
|
|
android:paddingTop="16dp"
|
|
android:forceDarkAllowed="false">
|
|
|
|
<!-- General preferences -->
|
|
|
|
<TextView
|
|
android:id="@+id/general_prefs"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/pref_category_general"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textStyle="bold"
|
|
app:layout_constraintEnd_toStartOf="@id/close_button"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
<ImageView
|
|
android:id="@+id/close_button"
|
|
android:layout_width="30dp"
|
|
android:layout_height="30dp"
|
|
android:clickable="true"
|
|
android:focusable="true"
|
|
android:background="@drawable/round_ripple"
|
|
android:tint="?android:attr/textColorPrimary"
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
app:layout_constraintTop_toTopOf="@id/general_prefs"
|
|
app:layout_constraintBottom_toBottomOf="@id/general_prefs"
|
|
android:src="@drawable/ic_expand_more_white_24dp"/>
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:id="@+id/spinner_end"
|
|
android:layout_width="16dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintStart_toEndOf="parent" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/viewer_for_this_series"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/viewer" />
|
|
|
|
<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_constraintTop_toBottomOf="@id/general_prefs"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/pref_rotation_type"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/rotation_mode" />
|
|
|
|
<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_constraintTop_toBottomOf="@id/viewer"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:text="@string/pref_reader_theme"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/background_color"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/background_color"/>
|
|
|
|
<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_constraintTop_toBottomOf="@id/rotation_mode"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/show_page_number"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/pref_show_page_number"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/background_color" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/true_color"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/pref_true_color"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
android:visibility="gone"
|
|
tools:visibility="visible"
|
|
app:layout_constraintTop_toBottomOf="@id/show_page_number" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/fullscreen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/pref_fullscreen"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/true_color" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/keepscreen"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/pref_keep_screen_on"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/fullscreen" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/long_tap"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/pref_read_with_long_tap"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/keepscreen" />
|
|
|
|
<androidx.legacy.widget.Space
|
|
android:id="@+id/end_general_preferences"
|
|
android:layout_width="0dp"
|
|
android:layout_height="0dp"
|
|
app:layout_constraintBottom_toBottomOf="@id/long_tap" />
|
|
|
|
<!-- Pager preferences -->
|
|
|
|
<TextView
|
|
android:id="@+id/pager_prefs"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/pager_viewer"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
|
|
|
|
<TextView
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:id="@+id/zoom_start_text"
|
|
android:text="@string/pref_image_scale_type"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/scale_type"/>
|
|
|
|
<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_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end"
|
|
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/pref_zoom_start"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintEnd_toStartOf="@id/bottom_line"
|
|
app:layout_constraintBaseline_toBaselineOf="@id/zoom_start"/>
|
|
|
|
<androidx.appcompat.widget.AppCompatSpinner
|
|
android:id="@+id/zoom_start"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:entries="@array/zoom_start"
|
|
android:layout_marginTop="16dp"
|
|
app:layout_constraintTop_toBottomOf="@id/scale_type"
|
|
app:layout_constraintStart_toEndOf="@id/bottom_line"
|
|
app:layout_constraintEnd_toEndOf="@id/spinner_end" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/crop_borders"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/pref_crop_borders"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/zoom_start" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/page_transitions"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="0dp"
|
|
android:text="@string/pref_page_transitions"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/crop_borders"
|
|
app:layout_constraintBottom_toBottomOf="parent"/>
|
|
|
|
<!-- 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_viewer"
|
|
android:textColor="?attr/colorAccent"
|
|
android:textStyle="bold"
|
|
app:layout_constraintStart_toStartOf="parent"
|
|
app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
|
|
|
|
<androidx.appcompat.widget.SwitchCompat
|
|
android:id="@+id/crop_borders_webtoon"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginTop="16dp"
|
|
android:text="@string/pref_crop_borders"
|
|
android:textColor="?android:attr/textColorSecondary"
|
|
app:layout_constraintTop_toBottomOf="@id/webtoon_prefs"
|
|
app:layout_constraintBottom_toBottomOf="parent" />
|
|
|
|
<!-- 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"
|
|
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" />
|
|
|
|
<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>
|