123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256 |
- <?xml version="1.0" encoding="utf-8"?>
- <android.support.constraint.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:layout_width="match_parent"
- android:layout_height="match_parent"
- android:background="?android:colorBackground"
- android:clipToPadding="false"
- android:orientation="vertical"
- android:padding="@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/pref_category_general"
- android:textColor="?attr/colorAccent"
- android:textStyle="bold"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toTopOf="parent" />
- <TextView
- android:id="@+id/pull_up_for_more"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_marginLeft="16dp"
- android:text="Pull up for more options"
- android:textColor="?android:attr/textColorHint"
- app:layout_constraintLeft_toRightOf="@id/general_prefs"
- app:layout_constraintTop_toTopOf="@id/general_prefs" />
- <android.support.v4.widget.Space
- android:id="@+id/spinner_end"
- android:layout_width="16dp"
- android:layout_height="0dp"
- app:layout_constraintLeft_toRightOf="parent" />
- <TextView
- android:id="@+id/viewer_text"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="@string/viewer_for_this_series"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/verticalcenter"
- app:layout_constraintBaseline_toBaselineOf="@id/viewer" />
- <android.support.v7.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/pull_up_for_more"
- app:layout_constraintLeft_toRightOf="@id/verticalcenter"
- app:layout_constraintRight_toRightOf="@id/spinner_end" />
- <TextView
- android:id="@+id/rotation_mode_text"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/pref_rotation_type"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/verticalcenter"
- app:layout_constraintBaseline_toBaselineOf="@id/rotation_mode" />
- <android.support.v7.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_constraintLeft_toRightOf="@id/verticalcenter"
- app:layout_constraintRight_toRightOf="@id/spinner_end" />
- <TextView
- android:id="@+id/background_color_text"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="@string/pref_reader_theme"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/background_color"
- app:layout_constraintBaseline_toBaselineOf="@id/background_color"/>
- <android.support.v7.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_constraintLeft_toRightOf="@id/verticalcenter"
- app:layout_constraintRight_toRightOf="@id/spinner_end" />
- <android.support.v7.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" />
- <android.support.v7.widget.SwitchCompat
- android:id="@+id/fullscreen"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/pref_fullscreen"
- android:textColor="?android:attr/textColorSecondary"
- app:layout_constraintTop_toBottomOf="@id/show_page_number" />
- <android.support.v7.widget.SwitchCompat
- android:id="@+id/keepscreen"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/pref_keep_screen_on"
- android:textColor="?android:attr/textColorSecondary"
- app:layout_constraintTop_toBottomOf="@id/fullscreen" />
- <android.support.v7.widget.SwitchCompat
- android:id="@+id/long_tap"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- android:text="@string/pref_read_with_long_tap"
- android:textColor="?android:attr/textColorSecondary"
- app:layout_constraintTop_toBottomOf="@id/keepscreen" />
- <android.support.v4.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_constraintLeft_toLeftOf="parent"
- 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"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/verticalcenter"
- app:layout_constraintBaseline_toBaselineOf="@id/scale_type"/>
- <android.support.v7.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_constraintLeft_toRightOf="@id/verticalcenter"
- app:layout_constraintRight_toRightOf="@id/spinner_end"
- app:layout_constraintTop_toBottomOf="@id/pager_prefs"/>
- <TextView
- android:id="@+id/zoom_start_text"
- android:layout_width="0dp"
- android:layout_height="wrap_content"
- android:text="@string/pref_zoom_start"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintRight_toLeftOf="@id/verticalcenter"
- app:layout_constraintBaseline_toBaselineOf="@id/zoom_start"/>
- <android.support.v7.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_constraintLeft_toRightOf="@id/verticalcenter"
- app:layout_constraintRight_toRightOf="@id/spinner_end" />
- <android.support.v7.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" />
- <android.support.v7.widget.SwitchCompat
- android:id="@+id/page_transitions"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_marginTop="16dp"
- 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"
- android:layout_marginTop="16dp"
- android:text="@string/webtoon_viewer"
- android:textColor="?attr/colorAccent"
- android:textStyle="bold"
- app:layout_constraintLeft_toLeftOf="parent"
- app:layout_constraintTop_toBottomOf="@id/end_general_preferences" />
- <android.support.v7.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" />
- <!-- Groups of preferences -->
- <android.support.constraint.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_text,scale_type,zoom_start_text,zoom_start,crop_borders,page_transitions"
- tools:visibility="visible" />
- <android.support.constraint.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" />
- <android.support.constraint.Guideline
- android:id="@+id/verticalcenter"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- app:layout_constraintGuide_percent="0.5" />
- </android.support.constraint.ConstraintLayout>
|