dialog_tip_config.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. android:layout_width="match_parent"
  5. android:layout_height="wrap_content">
  6. <LinearLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="wrap_content"
  9. android:orientation="vertical"
  10. android:paddingHorizontal="16dp">
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:orientation="vertical"
  15. android:gravity="center"
  16. android:paddingBottom="8dp"
  17. android:paddingHorizontal="16dp">
  18. <com.google.android.material.bottomsheet.BottomSheetDragHandleView
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:paddingVertical="8dp"
  22. android:minHeight="0dp"
  23. android:layout_gravity="center_horizontal" />
  24. <TextView
  25. android:id="@+id/bottom_sheet_title"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_marginVertical="8dp"
  29. android:text="@string/read_config"
  30. android:textSize="18sp"
  31. android:textStyle="bold" />
  32. </LinearLayout>
  33. <LinearLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:gravity="center_vertical"
  37. android:orientation="horizontal">
  38. <TextView
  39. android:layout_width="wrap_content"
  40. android:layout_height="wrap_content"
  41. android:text="@string/body_title"
  42. android:textSize="16sp"
  43. android:textStyle="bold" />
  44. <View
  45. android:layout_width="0dp"
  46. android:layout_height="match_parent"
  47. android:layout_weight="1" />
  48. <com.google.android.material.chip.ChipGroup
  49. android:id="@+id/rg_title_mode"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_marginVertical="8dp"
  53. app:selectionRequired="true"
  54. app:singleLine="true"
  55. app:singleSelection="true">
  56. <com.google.android.material.chip.Chip
  57. android:id="@+id/rb_title_mode1"
  58. android:layout_width="wrap_content"
  59. android:layout_height="wrap_content"
  60. android:checkable="true"
  61. android:text="@string/title_left" />
  62. <com.google.android.material.chip.Chip
  63. android:id="@+id/rb_title_mode2"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:checkable="true"
  67. android:text="@string/title_center" />
  68. <com.google.android.material.chip.Chip
  69. android:id="@+id/rb_title_mode3"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:checkable="true"
  73. android:text="@string/title_hide" />
  74. </com.google.android.material.chip.ChipGroup>
  75. </LinearLayout>
  76. <com.google.android.material.button.MaterialButtonGroup
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:gravity="end">
  80. <com.google.android.material.button.MaterialButton
  81. android:id="@+id/btn_title_segType"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:text="标题分段"
  85. style="@style/Widget.Material3Expressive.Button.TonalButton"/>
  86. <com.google.android.material.button.MaterialButton
  87. android:id="@+id/btn_title_seg_config"
  88. android:layout_width="wrap_content"
  89. android:layout_height="wrap_content"
  90. android:text="分段模式"
  91. style="@style/Widget.Material3Expressive.Button.TonalButton"/>
  92. <com.google.android.material.button.MaterialButton
  93. android:id="@+id/textFontWeightConverter"
  94. style="@style/Widget.Material3Expressive.Button.TonalButton"
  95. android:layout_width="wrap_content"
  96. android:layout_height="wrap_content"
  97. android:text="@string/font_weight_text"
  98. android:minWidth="0dp" />
  99. </com.google.android.material.button.MaterialButtonGroup>
  100. <LinearLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content">
  103. <io.legado.app.ui.widget.SimpleCounterView
  104. android:id="@+id/dsb_title_seg_scaling"
  105. android:layout_width="108dp"
  106. android:layout_height="wrap_content"
  107. app:max="20"
  108. app:min="-20"
  109. app:title="次行缩放" />
  110. <View
  111. android:layout_width="0dp"
  112. android:layout_height="match_parent"
  113. android:layout_weight="1"/>
  114. <io.legado.app.ui.widget.SimpleCounterView
  115. android:id="@+id/dsb_title_size"
  116. android:layout_width="108dp"
  117. android:layout_height="wrap_content"
  118. app:max="20"
  119. app:title="@string/title_font_size" />
  120. </LinearLayout>
  121. <LinearLayout
  122. android:layout_width="match_parent"
  123. android:layout_height="wrap_content">
  124. <io.legado.app.ui.widget.SimpleCounterView
  125. android:id="@+id/dsb_title_line_spacing_sub"
  126. android:layout_width="108dp"
  127. android:layout_height="wrap_content"
  128. app:max="30"
  129. app:min="-30"
  130. app:title="次行距离" />
  131. <View
  132. android:layout_width="0dp"
  133. android:layout_height="match_parent"
  134. android:layout_weight="1" />
  135. <io.legado.app.ui.widget.SimpleCounterView
  136. android:id="@+id/dsb_title_line_spacing_extra"
  137. android:layout_width="108dp"
  138. android:layout_height="wrap_content"
  139. app:max="20"
  140. app:title="标题段距" />
  141. </LinearLayout>
  142. <LinearLayout
  143. android:layout_width="match_parent"
  144. android:layout_height="wrap_content"
  145. android:orientation="horizontal">
  146. <io.legado.app.ui.widget.SimpleCounterView
  147. android:id="@+id/dsb_title_top"
  148. android:layout_width="120dp"
  149. android:layout_height="wrap_content"
  150. app:max="200"
  151. app:title="@string/title_margin_top" />
  152. <View
  153. android:layout_width="0dp"
  154. android:layout_height="match_parent"
  155. android:layout_weight="1"/>
  156. <io.legado.app.ui.widget.SimpleCounterView
  157. android:id="@+id/dsb_title_bottom"
  158. android:layout_width="120dp"
  159. android:layout_height="wrap_content"
  160. app:max="200"
  161. app:title="@string/title_margin_bottom" />
  162. </LinearLayout>
  163. <TextView
  164. android:layout_width="match_parent"
  165. android:layout_height="wrap_content"
  166. android:layout_marginTop="8dp"
  167. android:text="工具栏样式"
  168. android:textSize="16sp"
  169. android:textStyle="bold"/>
  170. <com.google.android.material.chip.ChipGroup
  171. android:id="@+id/bottom_mode"
  172. android:layout_width="wrap_content"
  173. android:layout_height="wrap_content"
  174. android:layout_gravity="end"
  175. android:layout_marginVertical="8dp"
  176. app:singleLine="true"
  177. app:singleSelection="true"
  178. app:selectionRequired="true">
  179. <com.google.android.material.chip.Chip
  180. android:id="@+id/bottom_mode1"
  181. android:layout_width="wrap_content"
  182. android:layout_height="wrap_content"
  183. android:checkable="true"
  184. android:text="@string/flow_sys" />
  185. <com.google.android.material.chip.Chip
  186. android:id="@+id/bottom_mode2"
  187. android:layout_width="wrap_content"
  188. android:layout_height="wrap_content"
  189. android:checkable="true"
  190. android:text="跟随阅读背景" />
  191. <com.google.android.material.chip.Chip
  192. android:id="@+id/bottom_mode3"
  193. android:layout_width="wrap_content"
  194. android:layout_height="wrap_content"
  195. android:checkable="true"
  196. android:text="@string/custom" />
  197. </com.google.android.material.chip.ChipGroup>
  198. <com.google.android.material.button.MaterialButtonGroup
  199. android:layout_width="match_parent"
  200. android:layout_height="wrap_content"
  201. android:gravity="end">
  202. <io.legado.app.ui.widget.AccentColorButton
  203. android:id="@+id/abtnBackgroundColor"
  204. android:layout_width="wrap_content"
  205. android:layout_height="wrap_content"
  206. style="@style/Widget.Material3Expressive.Button.OutlinedButton"
  207. android:text="@string/background_color" />
  208. <io.legado.app.ui.widget.AccentColorButton
  209. android:id="@+id/abtnAccentColor"
  210. android:layout_width="wrap_content"
  211. android:layout_height="wrap_content"
  212. style="@style/Widget.Material3Expressive.Button.OutlinedButton"
  213. android:text="@string/accent" />
  214. </com.google.android.material.button.MaterialButtonGroup>
  215. </LinearLayout>
  216. </androidx.core.widget.NestedScrollView>