reader_general_settings.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.core.widget.NestedScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:clipToPadding="false"
  8. android:padding="16dp">
  9. <androidx.constraintlayout.widget.ConstraintLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent">
  12. <TextView
  13. android:id="@+id/rotation_mode_text"
  14. android:layout_width="0dp"
  15. android:layout_height="wrap_content"
  16. android:text="@string/pref_rotation_type"
  17. app:layout_constraintBaseline_toBaselineOf="@id/rotation_mode"
  18. app:layout_constraintEnd_toStartOf="@id/verticalcenter"
  19. app:layout_constraintStart_toStartOf="parent" />
  20. <androidx.appcompat.widget.AppCompatSpinner
  21. android:id="@+id/rotation_mode"
  22. android:layout_width="0dp"
  23. android:layout_height="wrap_content"
  24. android:entries="@array/rotation_type"
  25. app:layout_constraintEnd_toEndOf="@id/spinner_end"
  26. app:layout_constraintStart_toEndOf="@id/verticalcenter"
  27. app:layout_constraintTop_toTopOf="parent" />
  28. <TextView
  29. android:id="@+id/background_color_text"
  30. android:layout_width="0dp"
  31. android:layout_height="wrap_content"
  32. android:text="@string/pref_reader_theme"
  33. app:layout_constraintBaseline_toBaselineOf="@id/background_color"
  34. app:layout_constraintEnd_toStartOf="@id/background_color"
  35. app:layout_constraintStart_toStartOf="parent" />
  36. <androidx.appcompat.widget.AppCompatSpinner
  37. android:id="@+id/background_color"
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_marginTop="20dp"
  41. android:entries="@array/reader_themes"
  42. app:layout_constraintEnd_toEndOf="@id/spinner_end"
  43. app:layout_constraintStart_toEndOf="@id/verticalcenter"
  44. app:layout_constraintTop_toBottomOf="@id/rotation_mode" />
  45. <com.google.android.material.switchmaterial.SwitchMaterial
  46. android:id="@+id/show_page_number"
  47. android:layout_width="match_parent"
  48. android:layout_height="wrap_content"
  49. android:layout_marginTop="10dp"
  50. android:text="@string/pref_show_page_number"
  51. android:textColor="?android:attr/textColorSecondary"
  52. app:layout_constraintTop_toBottomOf="@id/background_color" />
  53. <com.google.android.material.switchmaterial.SwitchMaterial
  54. android:id="@+id/fullscreen"
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:text="@string/pref_fullscreen"
  58. android:textColor="?android:attr/textColorSecondary"
  59. app:layout_constraintTop_toBottomOf="@id/show_page_number" />
  60. <com.google.android.material.switchmaterial.SwitchMaterial
  61. android:id="@+id/cutout_short"
  62. android:layout_width="match_parent"
  63. android:layout_height="wrap_content"
  64. android:text="@string/pref_cutout_short"
  65. android:textColor="?android:attr/textColorSecondary"
  66. android:visibility="gone"
  67. app:layout_constraintTop_toBottomOf="@id/fullscreen"
  68. tools:visibility="visible" />
  69. <com.google.android.material.switchmaterial.SwitchMaterial
  70. android:id="@+id/keepscreen"
  71. android:layout_width="match_parent"
  72. android:layout_height="wrap_content"
  73. android:text="@string/pref_keep_screen_on"
  74. android:textColor="?android:attr/textColorSecondary"
  75. app:layout_constraintTop_toBottomOf="@id/cutout_short" />
  76. <com.google.android.material.switchmaterial.SwitchMaterial
  77. android:id="@+id/long_tap"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:text="@string/pref_read_with_long_tap"
  81. android:textColor="?android:attr/textColorSecondary"
  82. app:layout_constraintTop_toBottomOf="@id/keepscreen" />
  83. <com.google.android.material.switchmaterial.SwitchMaterial
  84. android:id="@+id/always_show_chapter_transition"
  85. android:layout_width="match_parent"
  86. android:layout_height="wrap_content"
  87. android:text="@string/pref_always_show_chapter_transition"
  88. android:textColor="?android:attr/textColorSecondary"
  89. app:layout_constraintTop_toBottomOf="@id/long_tap" />
  90. <com.google.android.material.switchmaterial.SwitchMaterial
  91. android:id="@+id/page_transitions"
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:text="@string/pref_page_transitions"
  95. android:textColor="?android:attr/textColorSecondary"
  96. app:layout_constraintTop_toBottomOf="@id/always_show_chapter_transition" />
  97. <android.widget.Space
  98. android:id="@+id/spinner_end"
  99. android:layout_width="16dp"
  100. android:layout_height="0dp"
  101. app:layout_constraintStart_toEndOf="parent"
  102. tools:ignore="MissingConstraints" />
  103. <androidx.constraintlayout.widget.Guideline
  104. android:id="@+id/verticalcenter"
  105. android:layout_width="wrap_content"
  106. android:layout_height="wrap_content"
  107. android:orientation="vertical"
  108. app:layout_constraintGuide_percent="0.5" />
  109. </androidx.constraintlayout.widget.ConstraintLayout>
  110. </androidx.core.widget.NestedScrollView>