reader_settings_dialog.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. xmlns:setting="http://schemas.android.com/tools"
  7. android:orientation="vertical"
  8. android:padding="@dimen/material_component_dialogs_padding_around_content_area"
  9. android:divider="@drawable/empty_divider"
  10. android:showDividers="middle">
  11. <!-- Viewer for this series -->
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="horizontal"
  16. android:layout_gravity="center_vertical">
  17. <TextView
  18. android:layout_width="0dp"
  19. android:layout_height="wrap_content"
  20. android:layout_weight="1"
  21. android:layout_gravity="center_vertical"
  22. android:text="@string/viewer_for_this_series" />
  23. <android.support.v7.widget.AppCompatSpinner
  24. android:id="@+id/viewer"
  25. android:layout_width="0dp"
  26. android:layout_height="wrap_content"
  27. android:layout_weight="2"
  28. android:entries="@array/viewers_selector">
  29. </android.support.v7.widget.AppCompatSpinner>
  30. </LinearLayout>
  31. <!-- Rotation -->
  32. <LinearLayout
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:orientation="horizontal"
  36. android:layout_gravity="center_vertical">
  37. <TextView
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:layout_gravity="center_vertical"
  42. android:text="@string/pref_rotation_type" />
  43. <android.support.v7.widget.AppCompatSpinner
  44. android:id="@+id/rotation_mode"
  45. android:layout_width="0dp"
  46. android:layout_height="wrap_content"
  47. android:layout_weight="2"
  48. android:entries="@array/rotation_type">
  49. </android.support.v7.widget.AppCompatSpinner>
  50. </LinearLayout>
  51. <!-- Scale type -->
  52. <LinearLayout
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:orientation="horizontal"
  56. android:layout_gravity="center_vertical">
  57. <TextView
  58. android:layout_width="0dp"
  59. android:layout_height="wrap_content"
  60. android:layout_weight="1"
  61. android:layout_gravity="center_vertical"
  62. android:text="@string/pref_image_scale_type" />
  63. <android.support.v7.widget.AppCompatSpinner
  64. android:id="@+id/scale_type"
  65. android:layout_width="0dp"
  66. android:layout_height="wrap_content"
  67. android:layout_weight="2"
  68. android:entries="@array/image_scale_type">
  69. </android.support.v7.widget.AppCompatSpinner>
  70. </LinearLayout>
  71. <!-- Zoom start position -->
  72. <LinearLayout
  73. android:layout_width="match_parent"
  74. android:layout_height="wrap_content"
  75. android:orientation="horizontal"
  76. android:layout_gravity="center_vertical">
  77. <TextView
  78. android:layout_width="0dp"
  79. android:layout_height="wrap_content"
  80. android:layout_weight="1"
  81. android:layout_gravity="center_vertical"
  82. android:text="@string/pref_zoom_start" />
  83. <android.support.v7.widget.AppCompatSpinner
  84. android:id="@+id/zoom_start"
  85. android:layout_width="0dp"
  86. android:layout_height="wrap_content"
  87. android:layout_weight="2"
  88. android:entries="@array/zoom_start">
  89. </android.support.v7.widget.AppCompatSpinner>
  90. </LinearLayout>
  91. <!-- Image decoder -->
  92. <LinearLayout
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:orientation="horizontal"
  96. android:layout_gravity="center_vertical">
  97. <TextView
  98. android:layout_width="0dp"
  99. android:layout_height="wrap_content"
  100. android:layout_weight="1"
  101. android:layout_gravity="center_vertical"
  102. android:text="@string/pref_image_decoder" />
  103. <android.support.v7.widget.AppCompatSpinner
  104. android:id="@+id/image_decoder"
  105. android:layout_width="0dp"
  106. android:layout_height="wrap_content"
  107. android:layout_weight="2"
  108. android:entries="@array/image_decoders">
  109. </android.support.v7.widget.AppCompatSpinner>
  110. </LinearLayout>
  111. <!-- Background color -->
  112. <LinearLayout
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:orientation="horizontal"
  116. android:layout_gravity="center_vertical">
  117. <TextView
  118. android:layout_width="0dp"
  119. android:layout_height="wrap_content"
  120. android:layout_weight="1"
  121. android:layout_gravity="center_vertical"
  122. android:text="@string/pref_reader_theme" />
  123. <android.support.v7.widget.AppCompatSpinner
  124. android:id="@+id/background_color"
  125. android:layout_width="0dp"
  126. android:layout_height="wrap_content"
  127. android:layout_weight="2"
  128. android:entries="@array/reader_themes">
  129. </android.support.v7.widget.AppCompatSpinner>
  130. </LinearLayout>
  131. <android.support.v7.widget.SwitchCompat
  132. android:id="@+id/show_page_number"
  133. android:layout_width="match_parent"
  134. android:layout_height="wrap_content"
  135. android:text="@string/pref_show_page_number"/>
  136. <android.support.v7.widget.SwitchCompat
  137. android:id="@+id/crop_borders"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:text="@string/pref_crop_borders"/>
  141. <android.support.v7.widget.SwitchCompat
  142. android:id="@+id/crop_borders_webtoon"
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:text="@string/pref_crop_borders"/>
  146. <android.support.v7.widget.SwitchCompat
  147. android:id="@+id/fullscreen"
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:text="@string/pref_fullscreen"/>
  151. </LinearLayout>