fragment_create_sop.xml 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <layout xmlns:android="http://schemas.android.com/apk/res/android">
  3. <LinearLayout
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:layout_margin="20dp"
  7. android:background="@drawable/home_card_bg"
  8. android:orientation="vertical">
  9. <LinearLayout
  10. android:id="@+id/title_layout"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content"
  13. android:gravity="center_vertical"
  14. android:orientation="horizontal"
  15. android:paddingHorizontal="10dp"
  16. android:paddingVertical="5dp">
  17. <ImageView
  18. android:layout_width="20dp"
  19. android:layout_height="20dp"
  20. android:src="@mipmap/icon_data_manage_menu_user_manage" />
  21. <TextView
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_marginLeft="10dp"
  25. android:layout_weight="1"
  26. android:text="@string/create_sop_title"
  27. android:textColor="@color/black"
  28. android:textSize="24sp" />
  29. <TextView
  30. android:id="@+id/back"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_marginLeft="10dp"
  34. android:background="@drawable/common_dialog_btn"
  35. android:paddingHorizontal="20dp"
  36. android:text="@string/back"
  37. android:textColor="@color/black"
  38. android:textSize="20sp" />
  39. </LinearLayout>
  40. <View
  41. android:layout_width="match_parent"
  42. android:layout_height="1dp"
  43. android:background="@color/black" />
  44. <LinearLayout
  45. android:id="@+id/base_info_layout"
  46. android:layout_width="match_parent"
  47. android:layout_height="wrap_content"
  48. android:layout_marginHorizontal="20dp"
  49. android:layout_marginTop="20dp"
  50. android:layout_marginBottom="10dp"
  51. android:background="@drawable/home_card_bg"
  52. android:gravity="center_vertical"
  53. android:orientation="vertical">
  54. <TextView
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginLeft="10dp"
  58. android:layout_weight="1"
  59. android:text="@string/base_info_title"
  60. android:textColor="@color/black"
  61. android:textSize="24sp" />
  62. <View
  63. android:layout_width="match_parent"
  64. android:layout_height="1dp"
  65. android:background="@color/black" />
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginTop="20dp"
  70. android:gravity="center_vertical"
  71. android:orientation="horizontal"
  72. android:paddingHorizontal="16dp">
  73. <TextView
  74. android:layout_width="wrap_content"
  75. android:layout_height="wrap_content"
  76. android:text="@string/sop_workstation"
  77. android:textColor="@color/black"
  78. android:textSize="18sp" />
  79. <TextView
  80. android:id="@+id/workstation_tv"
  81. android:layout_width="match_parent"
  82. android:layout_height="wrap_content"
  83. android:layout_marginLeft="10dp"
  84. android:background="@drawable/bg_common_input"
  85. android:drawableRight="@drawable/icon_drop_down"
  86. android:hint="@string/please_select_sop_workstation"
  87. android:maxLines="1"
  88. android:paddingHorizontal="10dp"
  89. android:paddingVertical="2dp"
  90. android:singleLine="true"
  91. android:textColor="@color/black"
  92. android:textSize="18sp" />
  93. </LinearLayout>
  94. <LinearLayout
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:layout_marginTop="20dp"
  98. android:gravity="center_vertical"
  99. android:orientation="horizontal"
  100. android:paddingHorizontal="16dp">
  101. <TextView
  102. android:layout_width="wrap_content"
  103. android:layout_height="wrap_content"
  104. android:text="@string/lock_mode"
  105. android:textColor="@color/black"
  106. android:textSize="18sp" />
  107. <TextView
  108. android:id="@+id/lock_mode_tv"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:layout_marginLeft="10dp"
  112. android:background="@drawable/bg_common_input"
  113. android:drawableRight="@drawable/icon_drop_down"
  114. android:hint="@string/please_select_lock_mode"
  115. android:maxLines="1"
  116. android:paddingHorizontal="10dp"
  117. android:paddingVertical="2dp"
  118. android:singleLine="true"
  119. android:textColor="@color/black"
  120. android:textSize="18sp" />
  121. </LinearLayout>
  122. <LinearLayout
  123. android:layout_width="match_parent"
  124. android:layout_height="wrap_content"
  125. android:layout_marginTop="20dp"
  126. android:layout_marginBottom="20dp"
  127. android:gravity="center_vertical"
  128. android:orientation="horizontal"
  129. android:paddingHorizontal="16dp">
  130. <TextView
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:text="@string/create_sop_name"
  134. android:textColor="@color/black"
  135. android:textSize="18sp" />
  136. <EditText
  137. android:id="@+id/sop_name_et"
  138. android:layout_width="match_parent"
  139. android:layout_height="wrap_content"
  140. android:layout_marginLeft="10dp"
  141. android:background="@drawable/bg_common_input"
  142. android:hint="@string/please_input_sop_name"
  143. android:maxLines="1"
  144. android:paddingHorizontal="10dp"
  145. android:paddingVertical="2dp"
  146. android:singleLine="true"
  147. android:textColor="@color/black"
  148. android:textSize="18sp" />
  149. </LinearLayout>
  150. </LinearLayout>
  151. <LinearLayout
  152. android:id="@+id/point_info_layout"
  153. android:layout_width="match_parent"
  154. android:layout_height="wrap_content"
  155. android:layout_marginHorizontal="20dp"
  156. android:layout_marginVertical="10dp"
  157. android:background="@drawable/home_card_bg"
  158. android:gravity="center_vertical"
  159. android:orientation="vertical">
  160. <LinearLayout
  161. android:layout_width="match_parent"
  162. android:layout_height="wrap_content"
  163. android:orientation="horizontal">
  164. <TextView
  165. android:layout_width="match_parent"
  166. android:layout_height="wrap_content"
  167. android:layout_marginLeft="10dp"
  168. android:layout_weight="1"
  169. android:text="@string/point_info_title"
  170. android:textColor="@color/black"
  171. android:textSize="24sp" />
  172. <TextView
  173. android:id="@+id/select_point_tv"
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:layout_marginLeft="10dp"
  177. android:layout_marginRight="10dp"
  178. android:background="@drawable/common_dialog_btn"
  179. android:paddingHorizontal="20dp"
  180. android:text="@string/select"
  181. android:textColor="@color/black"
  182. android:textSize="20sp" />
  183. </LinearLayout>
  184. <View
  185. android:layout_width="match_parent"
  186. android:layout_height="1dp"
  187. android:background="@color/black" />
  188. <FrameLayout
  189. android:layout_width="match_parent"
  190. android:layout_height="match_parent">
  191. <androidx.recyclerview.widget.RecyclerView
  192. android:id="@+id/point_rv"
  193. android:layout_width="match_parent"
  194. android:layout_height="240dp"
  195. android:paddingBottom="10dp" />
  196. <LinearLayout
  197. android:id="@+id/no_selected_point_layout"
  198. android:layout_width="match_parent"
  199. android:layout_height="match_parent"
  200. android:background="@drawable/card_white_bg"
  201. android:gravity="center"
  202. android:orientation="vertical">
  203. <ImageView
  204. android:layout_width="80dp"
  205. android:layout_height="80dp"
  206. android:src="@drawable/icon_add_box" />
  207. <TextView
  208. android:layout_width="wrap_content"
  209. android:layout_height="wrap_content"
  210. android:gravity="center"
  211. android:paddingHorizontal="20dp"
  212. android:paddingVertical="10dp"
  213. android:text="@string/please_must_select_at_least_one_point"
  214. android:textColor="@color/black"
  215. android:textSize="24sp" />
  216. </LinearLayout>
  217. </FrameLayout>
  218. </LinearLayout>
  219. <LinearLayout
  220. android:id="@+id/member_info_layout"
  221. android:layout_width="match_parent"
  222. android:layout_height="wrap_content"
  223. android:layout_marginHorizontal="20dp"
  224. android:layout_marginVertical="10dp"
  225. android:background="@drawable/home_card_bg"
  226. android:gravity="center_vertical"
  227. android:orientation="vertical">
  228. <LinearLayout
  229. android:layout_width="match_parent"
  230. android:layout_height="wrap_content"
  231. android:orientation="horizontal">
  232. <TextView
  233. android:layout_width="match_parent"
  234. android:layout_height="wrap_content"
  235. android:layout_marginLeft="10dp"
  236. android:layout_weight="1"
  237. android:text="@string/member_info_title"
  238. android:textColor="@color/black"
  239. android:textSize="24sp" />
  240. <TextView
  241. android:id="@+id/select_member_tv"
  242. android:layout_width="wrap_content"
  243. android:layout_height="wrap_content"
  244. android:layout_marginLeft="10dp"
  245. android:layout_marginRight="10dp"
  246. android:background="@drawable/common_dialog_btn"
  247. android:paddingHorizontal="20dp"
  248. android:text="@string/select"
  249. android:textColor="@color/black"
  250. android:textSize="20sp" />
  251. </LinearLayout>
  252. <View
  253. android:layout_width="match_parent"
  254. android:layout_height="1dp"
  255. android:background="@color/black" />
  256. <FrameLayout
  257. android:layout_width="match_parent"
  258. android:layout_height="match_parent">
  259. <LinearLayout
  260. android:layout_width="match_parent"
  261. android:layout_height="match_parent"
  262. android:gravity="center"
  263. android:orientation="horizontal">
  264. <LinearLayout
  265. android:layout_width="wrap_content"
  266. android:layout_height="match_parent"
  267. android:background="@drawable/home_card_bg"
  268. android:orientation="vertical">
  269. <TextView
  270. android:layout_width="wrap_content"
  271. android:layout_height="wrap_content"
  272. android:gravity="center"
  273. android:paddingHorizontal="20dp"
  274. android:paddingVertical="10dp"
  275. android:text="@string/locker"
  276. android:textColor="@color/black"
  277. android:textSize="24sp" />
  278. <View
  279. android:layout_width="match_parent"
  280. android:layout_height="1dp"
  281. android:background="@color/black" />
  282. <LinearLayout
  283. android:layout_width="match_parent"
  284. android:layout_height="match_parent"
  285. android:gravity="center"
  286. android:paddingBottom="10dp"
  287. android:orientation="vertical">
  288. <ImageView
  289. android:layout_width="50dp"
  290. android:layout_height="50dp"
  291. android:layout_marginTop="10dp"
  292. android:src="@mipmap/icon_data_manage_menu_user_manage"
  293. android:tint="@color/black" />
  294. <TextView
  295. android:id="@+id/locker_name"
  296. android:layout_width="wrap_content"
  297. android:layout_height="wrap_content"
  298. android:gravity="center"
  299. android:textColor="@color/black"
  300. android:textSize="20sp" />
  301. </LinearLayout>
  302. </LinearLayout>
  303. <LinearLayout
  304. android:id="@+id/select_colocker_layout"
  305. android:layout_width="match_parent"
  306. android:layout_height="match_parent"
  307. android:layout_weight="1"
  308. android:background="@drawable/home_card_bg"
  309. android:orientation="vertical">
  310. <TextView
  311. android:layout_width="match_parent"
  312. android:layout_height="wrap_content"
  313. android:gravity="center"
  314. android:paddingHorizontal="20dp"
  315. android:paddingVertical="10dp"
  316. android:text="@string/colocker"
  317. android:textColor="@color/black"
  318. android:textSize="24sp" />
  319. <View
  320. android:layout_width="match_parent"
  321. android:layout_height="1dp"
  322. android:background="@color/black" />
  323. <androidx.recyclerview.widget.RecyclerView
  324. android:id="@+id/colocker_rv"
  325. android:layout_width="wrap_content"
  326. android:layout_height="match_parent" />
  327. </LinearLayout>
  328. </LinearLayout>
  329. <LinearLayout
  330. android:id="@+id/no_selected_member_layout"
  331. android:layout_width="match_parent"
  332. android:layout_height="match_parent"
  333. android:background="@drawable/card_white_bg"
  334. android:gravity="center"
  335. android:orientation="vertical">
  336. <ImageView
  337. android:layout_width="80dp"
  338. android:layout_height="80dp"
  339. android:src="@drawable/icon_add_box" />
  340. <TextView
  341. android:layout_width="wrap_content"
  342. android:layout_height="wrap_content"
  343. android:gravity="center"
  344. android:paddingHorizontal="20dp"
  345. android:paddingVertical="10dp"
  346. android:text="@string/please_select_member"
  347. android:textColor="@color/black"
  348. android:textSize="24sp" />
  349. </LinearLayout>
  350. </FrameLayout>
  351. </LinearLayout>
  352. <LinearLayout
  353. android:layout_width="match_parent"
  354. android:layout_height="wrap_content"
  355. android:gravity="right"
  356. android:orientation="horizontal"
  357. android:padding="10dp">
  358. <TextView
  359. android:id="@+id/confirm"
  360. android:layout_width="wrap_content"
  361. android:layout_height="wrap_content"
  362. android:layout_marginLeft="10dp"
  363. android:background="@drawable/common_dialog_btn"
  364. android:paddingHorizontal="20dp"
  365. android:text="@string/confirm"
  366. android:textColor="@color/black"
  367. android:textSize="20sp" />
  368. <TextView
  369. android:id="@+id/cancel"
  370. android:layout_width="wrap_content"
  371. android:layout_height="wrap_content"
  372. android:layout_marginLeft="10dp"
  373. android:background="@drawable/common_dialog_btn"
  374. android:paddingHorizontal="20dp"
  375. android:text="@string/cancel"
  376. android:textColor="@color/black"
  377. android:textSize="20sp" />
  378. </LinearLayout>
  379. </LinearLayout>
  380. </layout>