view_read_menu.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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:id="@+id/vw_menu_root"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:orientation="vertical">
  9. <View
  10. android:id="@+id/vw_menu_bg"
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:contentDescription="@string/content"
  14. tools:layout_editor_absoluteX="0dp"
  15. tools:layout_editor_absoluteY="0dp" />
  16. <io.legado.app.ui.widget.TitleBar
  17. android:id="@+id/title_bar"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. app:isNavigationBackground="no"
  21. style="@style/NoBackgroundNavi"
  22. android:background="?attr/colorSurfaceContainer"
  23. app:layout_constraintTop_toTopOf="parent">
  24. <LinearLayout
  25. android:layout_width="match_parent"
  26. android:layout_height="wrap_content"
  27. android:orientation="vertical"
  28. android:paddingHorizontal="32dp">
  29. <TextView
  30. android:id="@+id/tv_book_name"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. style="@style/TextAppearance.Material3.TitleLarge"
  34. android:singleLine="true" />
  35. <LinearLayout
  36. android:id="@+id/title_bar_addition"
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content"
  39. android:orientation="horizontal">
  40. <TextView
  41. android:id="@+id/tv_chapter_name"
  42. android:layout_width="0dp"
  43. android:layout_height="wrap_content"
  44. style="@style/TextAppearance.Material3.BodyMedium"
  45. android:layout_weight="1"
  46. android:singleLine="true" />
  47. <TextView
  48. android:id="@+id/tv_chapter_url"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:singleLine="true"
  52. android:visibility="gone" />
  53. <TextView
  54. android:id="@+id/tv_source_action"
  55. android:layout_width="wrap_content"
  56. android:layout_height="wrap_content"
  57. android:paddingVertical="8dp"
  58. android:text="@string/book_source" />
  59. </LinearLayout>
  60. </LinearLayout>
  61. </io.legado.app.ui.widget.TitleBar>
  62. <LinearLayout
  63. android:id="@+id/ll_brightness"
  64. android:layout_width="wrap_content"
  65. android:layout_height="0dp"
  66. android:layout_marginHorizontal="32dp"
  67. android:layout_marginTop="16dp"
  68. android:gravity="center_horizontal"
  69. android:orientation="vertical"
  70. app:layout_constraintBottom_toTopOf="@+id/bottom_menu"
  71. app:layout_constraintLeft_toLeftOf="parent"
  72. app:layout_constraintTop_toBottomOf="@+id/title_bar"
  73. tools:ignore="RtlHardcoded">
  74. <ImageView
  75. android:id="@+id/iv_brightness_auto"
  76. android:layout_width="24dp"
  77. android:layout_height="24dp"
  78. android:layout_margin="8dp"
  79. android:contentDescription="@string/brightness_auto"
  80. android:src="@drawable/ic_brightness_auto"
  81. tools:ignore="ImageContrastCheck" />
  82. <io.legado.app.ui.widget.seekbar.VerticalSeekBarWrapper
  83. android:layout_width="wrap_content"
  84. android:layout_height="0dp"
  85. android:layout_weight="1">
  86. <io.legado.app.ui.widget.seekbar.VerticalSeekBar
  87. android:id="@+id/seek_brightness"
  88. android:layout_width="wrap_content"
  89. android:layout_height="match_parent"
  90. android:max="255"
  91. app:seekBarRotation="CW270" />
  92. </io.legado.app.ui.widget.seekbar.VerticalSeekBarWrapper>
  93. <androidx.appcompat.widget.AppCompatImageView
  94. android:id="@+id/vw_brightness_pos_adjust"
  95. android:layout_width="24dp"
  96. android:layout_height="24dp"
  97. android:layout_margin="8dp"
  98. android:contentDescription="@string/adjust_pos"
  99. android:src="@drawable/ic_swap_horiz"/>
  100. </LinearLayout>
  101. <LinearLayout
  102. android:id="@+id/bottom_menu"
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:orientation="vertical"
  106. app:layout_constraintBottom_toBottomOf="parent">
  107. <LinearLayout
  108. android:id="@+id/ll_slider"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:layout_marginVertical="8dp"
  112. android:layout_marginHorizontal="16dp"
  113. android:importantForAccessibility="no"
  114. android:gravity="center"
  115. android:orientation="horizontal">
  116. <View
  117. android:layout_width="0dp"
  118. android:layout_height="match_parent"
  119. android:layout_weight="1"/>
  120. <com.google.android.material.button.MaterialButton
  121. android:id="@+id/tv_pre"
  122. style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:clickable="true"
  126. android:enabled="false"
  127. android:focusable="true"
  128. app:icon="@drawable/ic_previous"
  129. android:contentDescription="@string/previous_chapter"
  130. tools:ignore="TouchTargetSizeCheck" />
  131. <com.google.android.material.card.MaterialCardView
  132. android:id="@+id/cd_slider"
  133. android:layout_width="0dp"
  134. android:layout_height="wrap_content"
  135. android:layout_weight="1"
  136. app:cardCornerRadius="32dp"
  137. app:cardBackgroundColor="?attr/colorSurfaceContainer"
  138. app:strokeWidth="0dp">
  139. <com.google.android.material.slider.Slider
  140. android:id="@+id/seek_read_page"
  141. android:layout_width="match_parent"
  142. android:layout_height="wrap_content"
  143. android:layout_gravity="center_vertical"/>
  144. </com.google.android.material.card.MaterialCardView>
  145. <com.google.android.material.button.MaterialButton
  146. android:id="@+id/tv_next"
  147. style="@style/Widget.Material3Expressive.Button.IconButton.Tonal"
  148. android:layout_width="wrap_content"
  149. android:layout_height="wrap_content"
  150. android:clickable="true"
  151. android:enabled="false"
  152. android:focusable="true"
  153. app:icon="@drawable/ic_next"
  154. android:contentDescription="@string/next_chapter"
  155. tools:ignore="TouchTargetSizeCheck"/>
  156. <View
  157. android:layout_width="0dp"
  158. android:layout_height="match_parent"
  159. android:layout_weight="1"/>
  160. </LinearLayout>
  161. <LinearLayout
  162. android:layout_width="wrap_content"
  163. android:layout_height="wrap_content"
  164. android:orientation="horizontal">
  165. <View
  166. android:layout_width="0dp"
  167. android:layout_height="match_parent"
  168. android:layout_weight="1"/>
  169. <com.google.android.material.card.MaterialCardView
  170. android:layout_width="wrap_content"
  171. android:layout_height="wrap_content"
  172. app:strokeWidth="0dp">
  173. <com.google.android.material.button.MaterialButtonGroup
  174. android:id="@+id/bottom_view"
  175. android:layout_width="match_parent"
  176. android:layout_height="wrap_content"
  177. android:gravity="center"
  178. app:overflowMode="menu"
  179. android:paddingVertical="8dp"
  180. android:paddingHorizontal="16dp"
  181. android:background="?attr/colorSurfaceContainer" />
  182. </com.google.android.material.card.MaterialCardView>
  183. <View
  184. android:layout_width="0dp"
  185. android:layout_height="match_parent"
  186. android:layout_weight="1"/>
  187. </LinearLayout>
  188. </LinearLayout>
  189. </androidx.constraintlayout.widget.ConstraintLayout>