reader_webtoon_settings.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout 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. <TextView
  8. android:id="@+id/webtoon_prefs"
  9. android:layout_width="0dp"
  10. android:layout_height="wrap_content"
  11. android:layout_marginTop="24dp"
  12. android:text="@string/webtoon_viewer"
  13. android:textColor="?attr/colorAccent"
  14. android:textStyle="bold"
  15. app:layout_constraintStart_toStartOf="parent"
  16. app:layout_constraintTop_toTopOf="parent" />
  17. <TextView
  18. android:id="@+id/webtoon_side_padding_text"
  19. android:layout_width="0dp"
  20. android:layout_height="wrap_content"
  21. android:text="@string/pref_webtoon_side_padding"
  22. app:layout_constraintBaseline_toBaselineOf="@id/webtoon_side_padding"
  23. app:layout_constraintLeft_toLeftOf="parent"
  24. app:layout_constraintRight_toLeftOf="@id/verticalcenter" />
  25. <androidx.appcompat.widget.AppCompatSpinner
  26. android:id="@+id/webtoon_side_padding"
  27. android:layout_width="0dp"
  28. android:layout_height="wrap_content"
  29. android:layout_marginTop="16dp"
  30. android:entries="@array/webtoon_side_padding"
  31. app:layout_constraintLeft_toRightOf="@id/verticalcenter"
  32. app:layout_constraintRight_toRightOf="@id/spinner_end"
  33. app:layout_constraintTop_toBottomOf="@+id/tapping_inverted" />
  34. <TextView
  35. android:id="@+id/webtoon_nav_text"
  36. android:layout_width="0dp"
  37. android:layout_height="wrap_content"
  38. android:text="@string/pref_viewer_nav"
  39. app:layout_constraintBaseline_toBaselineOf="@id/webtoon_nav"
  40. app:layout_constraintEnd_toStartOf="@id/verticalcenter"
  41. app:layout_constraintStart_toStartOf="parent" />
  42. <androidx.appcompat.widget.AppCompatSpinner
  43. android:id="@+id/webtoon_nav"
  44. android:layout_width="0dp"
  45. android:layout_height="wrap_content"
  46. android:layout_marginTop="20dp"
  47. android:entries="@array/webtoon_nav"
  48. app:layout_constraintEnd_toEndOf="@id/spinner_end"
  49. app:layout_constraintHorizontal_bias="0.0"
  50. app:layout_constraintStart_toEndOf="@id/verticalcenter"
  51. app:layout_constraintTop_toBottomOf="@+id/webtoon_prefs" />
  52. <com.google.android.material.switchmaterial.SwitchMaterial
  53. android:id="@+id/crop_borders_webtoon"
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_marginTop="10dp"
  57. android:text="@string/pref_crop_borders"
  58. android:textColor="?android:attr/textColorSecondary"
  59. app:layout_constraintTop_toBottomOf="@+id/webtoon_side_padding" />
  60. <TextView
  61. android:id="@+id/tapping_inverted_text"
  62. android:layout_width="0dp"
  63. android:layout_height="wrap_content"
  64. android:text="@string/pref_read_with_tapping_inverted"
  65. app:layout_constraintBaseline_toBaselineOf="@id/tapping_inverted"
  66. app:layout_constraintEnd_toStartOf="@id/verticalcenter"
  67. app:layout_constraintStart_toStartOf="parent" />
  68. <androidx.appcompat.widget.AppCompatSpinner
  69. android:id="@+id/tapping_inverted"
  70. android:layout_width="0dp"
  71. android:layout_height="wrap_content"
  72. android:layout_marginTop="16dp"
  73. android:entries="@array/invert_tapping_mode"
  74. app:layout_constraintEnd_toEndOf="@id/spinner_end"
  75. app:layout_constraintHorizontal_bias="0.0"
  76. app:layout_constraintStart_toEndOf="@id/verticalcenter"
  77. app:layout_constraintTop_toBottomOf="@+id/webtoon_nav" />
  78. <androidx.constraintlayout.widget.Guideline
  79. android:id="@+id/verticalcenter"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:orientation="vertical"
  83. app:layout_constraintGuide_percent="0.5" />
  84. <androidx.constraintlayout.widget.Group
  85. android:id="@+id/tapping_prefs_group"
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. app:constraint_referenced_ids="webtoon_nav_text,webtoon_nav,tapping_inverted_text,tapping_inverted"
  89. tools:layout_editor_absoluteX="24dp" />
  90. <android.widget.Space
  91. android:id="@+id/spinner_end"
  92. android:layout_width="16dp"
  93. android:layout_height="0dp"
  94. app:layout_constraintStart_toEndOf="parent" />
  95. </androidx.constraintlayout.widget.ConstraintLayout>