activity_plan_add.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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/main"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:animateLayoutChanges="true"
  9. android:background="@mipmap/icon_add_bg"
  10. tools:context=".ui.plan.PlanAddActivity"
  11. tools:ignore="PxUsage">
  12. <RelativeLayout
  13. android:id="@+id/rel1"
  14. android:layout_width="match_parent"
  15. android:layout_height="45dp"
  16. android:layout_marginTop="10dp">
  17. <ImageView
  18. android:id="@+id/image"
  19. android:layout_width="30dp"
  20. android:layout_height="30dp"
  21. android:layout_centerVertical="true"
  22. android:layout_marginStart="20dp" />
  23. <TextView
  24. android:id="@+id/deptName"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_centerVertical="true"
  28. android:layout_marginStart="10dp"
  29. android:layout_toEndOf="@+id/image"
  30. android:text="实验室名称-房间号"
  31. android:textColor="@color/white"
  32. android:textSize="22sp" />
  33. <LinearLayout
  34. android:layout_width="wrap_content"
  35. android:layout_height="wrap_content"
  36. android:layout_centerInParent="true"
  37. android:layout_centerVertical="true"
  38. android:layout_marginTop="2dp">
  39. <TextView
  40. android:id="@+id/tvTitle"
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content"
  43. android:text="化学品智能管理"
  44. android:textColor="@color/white"
  45. android:textSize="24sp"
  46. android:textStyle="bold" />
  47. <TextView
  48. android:id="@+id/nowTime"
  49. android:layout_width="wrap_content"
  50. android:layout_height="wrap_content"
  51. android:layout_marginStart="6dp"
  52. android:textColor="@color/white" />
  53. </LinearLayout>
  54. <RelativeLayout
  55. android:id="@+id/loggedIn"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_alignParentEnd="true"
  59. android:layout_centerVertical="true"
  60. android:gravity="center_vertical"
  61. android:paddingEnd="18dp">
  62. <ImageView
  63. android:id="@+id/imageName"
  64. android:layout_width="30dp"
  65. android:layout_height="30dp"
  66. android:layout_centerVertical="true"
  67. android:layout_marginEnd="6dp" />
  68. <TextView
  69. android:id="@+id/tvName"
  70. android:layout_width="wrap_content"
  71. android:layout_height="wrap_content"
  72. android:layout_centerVertical="true"
  73. android:layout_marginLeft="6dp"
  74. android:layout_marginRight="6dp"
  75. android:layout_toEndOf="@+id/imageName"
  76. android:text="李XX"
  77. android:textColor="@color/white" />
  78. <ImageView
  79. android:id="@+id/imgOut"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_centerVertical="true"
  83. android:layout_marginLeft="6dp"
  84. android:layout_marginRight="6dp"
  85. android:layout_toEndOf="@+id/tvName"
  86. android:background="@mipmap/cshrk_dl_tc" />
  87. <TextView
  88. android:id="@+id/tvOutLogin"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:layout_centerVertical="true"
  92. android:layout_marginEnd="10dp"
  93. android:layout_toEndOf="@+id/imgOut"
  94. android:text="退出"
  95. android:textColor="@color/white"
  96. android:textSize="16sp" />
  97. </RelativeLayout>
  98. </RelativeLayout>
  99. <LinearLayout
  100. android:layout_width="match_parent"
  101. android:layout_height="match_parent"
  102. android:layout_below="@+id/rel1"
  103. android:layout_marginLeft="31dp"
  104. android:layout_marginTop="15dp"
  105. android:layout_marginRight="31dp"
  106. android:layout_marginBottom="69dp"
  107. android:background="@drawable/bg_add_chemicals_one">
  108. <RelativeLayout
  109. android:layout_width="match_parent"
  110. android:layout_height="match_parent"
  111. android:layout_weight="1.5">
  112. <LinearLayout
  113. android:id="@+id/count_LL"
  114. android:layout_width="match_parent"
  115. android:layout_height="100px"
  116. android:layout_alignParentBottom="true"
  117. android:gravity="center"
  118. android:orientation="horizontal">
  119. <ImageButton
  120. android:id="@+id/last_BT"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_marginEnd="50px"
  124. android:background="@mipmap/icon_dcc_z" />
  125. <TextView
  126. android:id="@+id/countTV"
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:text="0/0"
  130. android:textColor="#333"
  131. android:textStyle="bold" />
  132. <ImageButton
  133. android:id="@+id/next_BT"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_marginStart="50px"
  137. android:background="@mipmap/icon_dcc_z"
  138. android:rotation="180"
  139. android:text="下一页" />
  140. </LinearLayout>
  141. <TextView
  142. android:id="@+id/add_index_TV"
  143. android:layout_width="wrap_content"
  144. android:layout_height="wrap_content"
  145. android:layout_margin="10px"
  146. android:text="选择存储位置"
  147. android:textSize="18sp"
  148. android:textStyle="bold" />
  149. <androidx.viewpager2.widget.ViewPager2
  150. android:id="@+id/locker_VP2"
  151. android:layout_width="match_parent"
  152. android:layout_height="match_parent"
  153. android:layout_above="@id/count_LL"
  154. android:layout_below="@id/add_index_TV"
  155. android:layout_margin="10px" />
  156. </RelativeLayout>
  157. <RelativeLayout
  158. android:id="@+id/input_RL"
  159. android:layout_width="match_parent"
  160. android:layout_height="match_parent"
  161. android:layout_weight="1"
  162. android:visibility="gone">
  163. <Button
  164. android:id="@+id/input_BT"
  165. android:layout_width="200px"
  166. android:layout_height="60px"
  167. android:layout_alignParentBottom="true"
  168. android:layout_centerHorizontal="true"
  169. android:layout_marginBottom="20px"
  170. android:background="@drawable/selector_input_select_bt"
  171. android:gravity="center"
  172. android:text="手动录入化学品"
  173. android:textColor="@color/white"
  174. android:textSize="20px" />
  175. <LinearLayout
  176. android:layout_width="match_parent"
  177. android:layout_height="match_parent"
  178. android:layout_above="@id/input_BT"
  179. android:layout_margin="10dp"
  180. android:orientation="vertical">
  181. <RelativeLayout
  182. android:layout_width="wrap_content"
  183. android:layout_height="wrap_content"
  184. android:layout_marginVertical="10dp">
  185. <TextView
  186. android:layout_width="wrap_content"
  187. android:layout_height="wrap_content"
  188. android:text="待存储列表"
  189. android:textSize="18sp"
  190. android:textStyle="bold" />
  191. <TextView
  192. android:id="@+id/size_TV"
  193. android:layout_width="wrap_content"
  194. android:layout_height="wrap_content"
  195. android:layout_alignParentEnd="true"
  196. android:text="总数:0"
  197. android:textSize="18sp"
  198. android:textStyle="bold" />
  199. </RelativeLayout>
  200. <LinearLayout
  201. android:layout_width="match_parent"
  202. android:layout_height="40dp"
  203. android:background="#f5f5f5"
  204. android:gravity="center_vertical">
  205. <TextView
  206. android:layout_width="match_parent"
  207. android:layout_height="wrap_content"
  208. android:layout_marginStart="10dp"
  209. android:layout_weight="1"
  210. android:text="名称"
  211. android:textSize="16sp" />
  212. <TextView
  213. android:layout_width="match_parent"
  214. android:layout_height="wrap_content"
  215. android:layout_weight="1"
  216. android:text="CAS"
  217. android:textSize="16sp" />
  218. <TextView
  219. android:layout_width="match_parent"
  220. android:layout_height="wrap_content"
  221. android:layout_weight="1"
  222. android:text="类别"
  223. android:textSize="16sp" />
  224. <TextView
  225. android:layout_width="match_parent"
  226. android:layout_height="wrap_content"
  227. android:layout_weight="1"
  228. android:text="级别"
  229. android:textSize="16sp" />
  230. <TextView
  231. android:layout_width="match_parent"
  232. android:layout_height="wrap_content"
  233. android:layout_weight="1"
  234. android:text="规格"
  235. android:textSize="16sp" />
  236. <TextView
  237. android:layout_width="match_parent"
  238. android:layout_height="wrap_content"
  239. android:layout_weight="1"
  240. android:text="净含量"
  241. android:textSize="16sp" />
  242. <TextView
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:layout_weight="1"
  246. android:gravity="center"
  247. android:text="数量"
  248. android:textSize="16sp" />
  249. <TextView
  250. android:layout_width="match_parent"
  251. android:layout_height="wrap_content"
  252. android:layout_weight="1.1"
  253. android:textSize="16sp" />
  254. </LinearLayout>
  255. <ListView
  256. android:id="@+id/plan_LV"
  257. android:layout_width="match_parent"
  258. android:layout_height="match_parent"
  259. android:visibility="gone"
  260. tools:listitem="@layout/item_in_storage" />
  261. <LinearLayout
  262. android:id="@+id/scan_LL"
  263. android:layout_width="match_parent"
  264. android:layout_height="match_parent"
  265. android:gravity="center"
  266. android:orientation="vertical">
  267. <ImageView
  268. android:layout_width="wrap_content"
  269. android:layout_height="wrap_content"
  270. android:layout_gravity="center_horizontal"
  271. android:src="@mipmap/img_gh_smsb" />
  272. <TextView
  273. android:layout_width="wrap_content"
  274. android:layout_height="wrap_content"
  275. android:layout_gravity="center_horizontal"
  276. android:layout_marginTop="10dp"
  277. android:gravity="center_horizontal"
  278. android:text="扫描化学品标签\n或手动录入化学品"
  279. android:textSize="26px" />
  280. </LinearLayout>
  281. </LinearLayout>
  282. </RelativeLayout>
  283. </LinearLayout>
  284. <TextView
  285. android:id="@+id/tvReturn"
  286. android:layout_width="85dp"
  287. android:layout_height="30dp"
  288. android:layout_alignParentBottom="true"
  289. android:layout_marginBottom="20dp"
  290. android:background="@drawable/bg_retrun"
  291. android:gravity="center"
  292. android:text="返回"
  293. android:textColor="@color/white"
  294. android:textSize="10sp" />
  295. <Button
  296. android:id="@+id/subAdd"
  297. android:layout_width="85dp"
  298. android:layout_height="30dp"
  299. android:layout_alignParentRight="true"
  300. android:layout_alignParentBottom="true"
  301. android:layout_marginBottom="20dp"
  302. android:background="@drawable/bg_retrun_two"
  303. android:text="开门入库"
  304. android:textColor="@color/white"
  305. android:textSize="10sp" />
  306. </RelativeLayout>