电子屏项目
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 

236 строки
8.9 KiB

  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. android:layout_width="match_parent"
  3. android:layout_height="match_parent"
  4. android:background="#ffffffff"
  5. android:orientation="vertical">
  6. <com.google.android.material.appbar.AppBarLayout
  7. android:layout_width="match_parent"
  8. android:layout_height="@dimen/title_height"
  9. android:background="@color/white">
  10. <RelativeLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent">
  13. <ImageView
  14. android:id="@+id/btnBack"
  15. android:layout_width="@dimen/title_height"
  16. android:layout_height="@dimen/title_height"
  17. android:background="?attr/selectableItemBackground"
  18. android:scaleType="centerInside"
  19. android:src="@mipmap/ic_back_def" />
  20. <ImageView
  21. android:id="@+id/btnClose"
  22. android:layout_width="@dimen/title_height"
  23. android:layout_height="@dimen/title_height"
  24. android:layout_toEndOf="@+id/btnBack"
  25. android:background="?attr/selectableItemBackground"
  26. android:scaleType="centerInside"
  27. android:src="@mipmap/ic_close"
  28. android:visibility="gone" />
  29. <androidx.appcompat.widget.AppCompatTextView
  30. android:id="@+id/titleTv"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_centerInParent="true"
  34. android:layout_marginStart="96dp"
  35. android:layout_marginEnd="96dp"
  36. android:gravity="center"
  37. android:textColor="@color/black"
  38. android:textStyle="bold"
  39. android:textSize="@dimen/title_text_size" />
  40. <androidx.appcompat.widget.AppCompatButton
  41. android:id="@+id/save"
  42. android:layout_width="wrap_content"
  43. android:layout_height="wrap_content"
  44. android:layout_alignParentEnd="true"
  45. android:layout_centerVertical="true"
  46. android:background="@drawable/btn_select"
  47. android:paddingHorizontal="15dp"
  48. android:textSize="@dimen/title_text_size"
  49. android:textStyle="bold"
  50. android:text="保存" />
  51. <LinearLayout
  52. android:layout_width="wrap_content"
  53. android:layout_height="wrap_content"
  54. android:layout_alignParentEnd="true"
  55. android:layout_centerVertical="true"
  56. android:layout_marginEnd="15dp"
  57. android:orientation="horizontal"
  58. android:visibility="gone">
  59. <androidx.appcompat.widget.AppCompatTextView
  60. android:id="@+id/btnPre"
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content"
  63. android:background="@mipmap/ic_left" />
  64. <androidx.appcompat.widget.AppCompatTextView
  65. android:id="@+id/tvIndex"
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:text="1"
  69. android:textColor="#2c2c2c" />
  70. <androidx.appcompat.widget.AppCompatTextView
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:text="/"
  74. android:textColor="#2c2c2c" />
  75. <androidx.appcompat.widget.AppCompatTextView
  76. android:id="@+id/tvTotal"
  77. android:layout_width="wrap_content"
  78. android:layout_height="wrap_content"
  79. android:text="2"
  80. android:textColor="#2c2c2c" />
  81. <androidx.appcompat.widget.AppCompatTextView
  82. android:id="@+id/btnNext"
  83. android:layout_width="wrap_content"
  84. android:layout_height="wrap_content"
  85. android:background="@mipmap/ic_right" />
  86. </LinearLayout>
  87. <ProgressBar
  88. android:id="@+id/progressbar"
  89. style="?android:attr/progressBarStyleHorizontal"
  90. android:layout_width="match_parent"
  91. android:layout_height="2dp"
  92. android:layout_alignParentBottom="true"
  93. android:max="100"
  94. android:progress="0"
  95. android:progressDrawable="@drawable/progress_horizontal"
  96. android:visibility="visible" />
  97. </RelativeLayout>
  98. </com.google.android.material.appbar.AppBarLayout>
  99. <LinearLayout
  100. android:id="@+id/bottom_view"
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:layout_alignParentTop="true"
  104. android:orientation="horizontal"
  105. android:paddingTop="4dp">
  106. <Button
  107. android:id="@+id/delete"
  108. android:layout_width="0dp"
  109. android:layout_height="wrap_content"
  110. android:layout_weight="1"
  111. android:background="@drawable/btn_select"
  112. android:text="删除"
  113. android:visibility="gone" />
  114. <Button
  115. android:id="@+id/init"
  116. android:layout_width="0dp"
  117. android:layout_height="wrap_content"
  118. android:layout_weight="1"
  119. android:background="@drawable/btn_select"
  120. android:text="背景0" />
  121. <Button
  122. android:id="@+id/clear"
  123. android:layout_width="0dp"
  124. android:layout_height="wrap_content"
  125. android:layout_weight="1"
  126. android:background="@drawable/btn_select"
  127. android:text="清除" />
  128. <Button
  129. android:id="@+id/redo"
  130. android:layout_width="0dp"
  131. android:layout_height="wrap_content"
  132. android:layout_weight="1"
  133. android:background="@drawable/btn_select"
  134. android:text="ReDo" />
  135. <Button
  136. android:id="@+id/undo"
  137. android:layout_width="0dp"
  138. android:layout_height="wrap_content"
  139. android:layout_weight="1"
  140. android:background="@drawable/btn_select"
  141. android:text="UnDo" />
  142. <Button
  143. android:id="@+id/pen_width_sub"
  144. android:layout_width="0dp"
  145. android:layout_height="wrap_content"
  146. android:layout_weight="1"
  147. android:background="@drawable/btn_select"
  148. android:text="-宽度3" />
  149. <Button
  150. android:id="@+id/pen_width"
  151. android:layout_width="0dp"
  152. android:layout_height="wrap_content"
  153. android:layout_weight="1"
  154. android:background="@drawable/btn_select"
  155. android:text="+宽度3" />
  156. <Button
  157. android:id="@+id/eraser_width"
  158. android:layout_width="0dp"
  159. android:layout_height="wrap_content"
  160. android:layout_weight="1"
  161. android:background="@drawable/btn_select"
  162. android:text="橡皮宽15" />
  163. <CheckBox
  164. android:id="@+id/strokes"
  165. android:layout_width="0dp"
  166. android:layout_height="wrap_content"
  167. android:layout_weight="1"
  168. android:background="@drawable/btn_select"
  169. android:text="笔锋" />
  170. <CheckBox
  171. android:id="@+id/eraser"
  172. android:layout_width="0dp"
  173. android:layout_height="wrap_content"
  174. android:layout_weight="1"
  175. android:background="@drawable/btn_select"
  176. android:text="橡皮擦" />
  177. <Button
  178. android:id="@+id/cancel"
  179. android:layout_width="0dp"
  180. android:layout_height="wrap_content"
  181. android:layout_weight="1"
  182. android:background="@drawable/btn_select"
  183. android:text="退出"
  184. android:visibility="gone" />
  185. </LinearLayout>
  186. <TextView
  187. android:layout_width="match_parent"
  188. android:layout_height="1dp"
  189. android:background="#ff000000" />
  190. <!-- <FrameLayout
  191. android:id="@+id/tablet_view"
  192. android:layout_width="fill_parent"
  193. android:layout_height="match_parent" >
  194. </FrameLayout> -->
  195. <com.wetao.note.WeNoteView
  196. android:id="@+id/note_view"
  197. android:layout_width="match_parent"
  198. android:layout_height="match_parent"
  199. android:layout_above="@+id/bottom_view"
  200. android:background="#ffffffff" />
  201. <!-- <com.wetao.note.WeNoteView
  202. android:id="@+id/note_view"
  203. android:layout_width="1150px"
  204. android:layout_height="1560px"
  205. android:layout_marginLeft="103px"
  206. android:layout_marginRight="150px"
  207. android:layout_above="@+id/bottom_view"
  208. android:background="#ffffffff" /> -->
  209. </LinearLayout>