fragment_use_ledger.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/white"
  7. android:orientation="vertical"
  8. tools:context=".ui.fragments.UseLedgerFragment">
  9. <LinearLayout
  10. android:layout_width="wrap_content"
  11. android:layout_height="45dp"
  12. android:gravity="center"
  13. android:orientation="horizontal">
  14. <RadioButton
  15. android:id="@+id/radioOne"
  16. android:layout_width="65dp"
  17. android:layout_height="30dp"
  18. android:background="@drawable/bg_sele"
  19. android:button="@null"
  20. android:checked="true"
  21. android:gravity="center"
  22. android:textSize="12sp"
  23. android:text="全部"
  24. android:textColor="@drawable/text_color_selector" />
  25. <RadioButton
  26. android:id="@+id/radioTwo"
  27. android:layout_width="65dp"
  28. android:layout_height="30dp"
  29. android:background="@drawable/bg_one"
  30. android:button="@null"
  31. android:gravity="center"
  32. android:textSize="12sp"
  33. android:text="近一个月"
  34. android:textColor="@drawable/text_color_selector" />
  35. <RadioButton
  36. android:id="@+id/radioThree"
  37. android:layout_width="65dp"
  38. android:layout_height="30dp"
  39. android:background="@drawable/bg_sele_you"
  40. android:button="@null"
  41. android:gravity="center"
  42. android:textSize="12sp"
  43. android:text="近三个月"
  44. android:textColor="@drawable/text_color_selector" />
  45. <RelativeLayout
  46. android:layout_width="75dp"
  47. android:layout_height="wrap_content"
  48. android:layout_centerVertical="true"
  49. android:layout_marginLeft="4dp"
  50. android:layout_toRightOf="@+id/tvCategory">
  51. <TextView
  52. android:id="@+id/chemType"
  53. android:layout_width="match_parent"
  54. android:layout_height="30dp"
  55. android:background="@drawable/bg_shu_ru_kuang_twoe"
  56. android:gravity="center_vertical"
  57. android:paddingLeft="6dp"
  58. android:text="类别"
  59. android:textColor="@color/black"
  60. android:textSize="12sp" />
  61. <ImageView
  62. android:layout_width="wrap_content"
  63. android:layout_height="wrap_content"
  64. android:layout_alignParentRight="true"
  65. android:layout_centerVertical="true"
  66. android:background="@mipmap/icon_kzjc_zk" />
  67. </RelativeLayout>
  68. <RelativeLayout
  69. android:layout_width="75dp"
  70. android:layout_height="30dp"
  71. android:layout_marginLeft="6dp"
  72. android:background="@drawable/bg_shu_ru_kuang_twoe">
  73. <Spinner
  74. android:id="@+id/sPinner"
  75. android:layout_width="match_parent"
  76. android:layout_height="30dp"
  77. android:layout_centerVertical="true"
  78. android:background="@null"
  79. android:gravity="center"
  80. android:entries="@array/spinner_spLev"
  81. android:padding="2dp"
  82. android:text="级别"
  83. android:textColor="@color/black" />
  84. <ImageView
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:layout_alignParentRight="true"
  88. android:layout_centerVertical="true"
  89. android:background="@mipmap/icon_kzjc_zk" />
  90. </RelativeLayout>
  91. <RelativeLayout
  92. android:id="@+id/relCabinet"
  93. android:layout_width="90dp"
  94. android:layout_height="wrap_content"
  95. android:layout_centerVertical="true"
  96. android:layout_marginLeft="4dp"
  97. android:layout_toRightOf="@+id/tvCategory">
  98. <TextView
  99. android:id="@+id/cabinetName"
  100. android:layout_width="match_parent"
  101. android:layout_height="30dp"
  102. android:background="@drawable/bg_shu_ru_kuang_twoe"
  103. android:gravity="center_vertical"
  104. android:paddingLeft="6dp"
  105. android:text="化学品柜"
  106. android:textColor="@color/black"
  107. android:textSize="12sp" />
  108. <ImageView
  109. android:layout_width="wrap_content"
  110. android:layout_height="wrap_content"
  111. android:layout_alignParentRight="true"
  112. android:layout_centerVertical="true"
  113. android:background="@mipmap/icon_kzjc_zk" />
  114. </RelativeLayout>
  115. <EditText
  116. android:id="@+id/edCont"
  117. android:layout_width="280dp"
  118. android:layout_height="30dp"
  119. android:layout_marginLeft="6dp"
  120. android:layout_toLeftOf="@+id/reQuy"
  121. android:background="@drawable/bg_sou_no_1"
  122. android:hint="化学品名/拼音首字母/CAS码/编码/姓名"
  123. android:padding="4dp"
  124. android:imeOptions="actionDone"
  125. android:singleLine="true"
  126. android:textSize="12sp" />
  127. <RelativeLayout
  128. android:id="@+id/reQuy"
  129. android:layout_width="wrap_content"
  130. android:layout_height="wrap_content"
  131. android:layout_alignParentRight="true"
  132. android:layout_marginRight="10dp">
  133. <ImageView
  134. android:layout_width="35dp"
  135. android:layout_height="30dp"
  136. android:background="@drawable/bg_no_01" />
  137. <ImageView
  138. android:layout_width="wrap_content"
  139. android:layout_height="wrap_content"
  140. android:layout_centerInParent="true"
  141. android:layout_centerVertical="true"
  142. android:background="@mipmap/icon_ss" />
  143. </RelativeLayout>
  144. <RelativeLayout
  145. android:layout_width="match_parent"
  146. android:layout_height="45dp">
  147. <TextView
  148. android:id="@+id/total"
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_alignParentRight="true"
  152. android:layout_centerVertical="true"
  153. android:layout_marginRight="10dp"
  154. android:textColor="@color/black" />
  155. </RelativeLayout>
  156. </LinearLayout>
  157. <LinearLayout
  158. android:layout_width="match_parent"
  159. android:layout_height="35dp"
  160. android:layout_marginTop="8dp"
  161. android:paddingLeft="13dp"
  162. android:background="@drawable/bg_bei_ji"
  163. android:gravity="center"
  164. android:orientation="horizontal">
  165. <TextView
  166. android:layout_width="match_parent"
  167. android:layout_height="wrap_content"
  168. android:layout_weight="1"
  169. android:text="名称"
  170. android:textColor="@color/black" />
  171. <TextView
  172. android:layout_width="match_parent"
  173. android:layout_height="wrap_content"
  174. android:layout_weight="1"
  175. android:text="编码"
  176. android:textColor="@color/black" />
  177. <TextView
  178. android:layout_width="match_parent"
  179. android:layout_height="wrap_content"
  180. android:layout_weight="1"
  181. android:text="领用时间"
  182. android:textColor="@color/black" />
  183. <TextView
  184. android:layout_width="match_parent"
  185. android:layout_height="wrap_content"
  186. android:layout_weight="1"
  187. android:text="领用人"
  188. android:textColor="@color/black" />
  189. <TextView
  190. android:layout_width="match_parent"
  191. android:layout_height="wrap_content"
  192. android:layout_weight="1"
  193. android:text="双人认证"
  194. android:textColor="@color/black" />
  195. <TextView
  196. android:layout_width="match_parent"
  197. android:layout_height="wrap_content"
  198. android:layout_weight="1"
  199. android:text="领用量"
  200. android:textColor="@color/black" />
  201. <TextView
  202. android:layout_width="match_parent"
  203. android:layout_height="wrap_content"
  204. android:layout_weight="1"
  205. android:text="归还时间"
  206. android:textColor="@color/black" />
  207. <TextView
  208. android:layout_width="match_parent"
  209. android:layout_height="wrap_content"
  210. android:layout_weight="1"
  211. android:text="归还人"
  212. android:textColor="@color/black" />
  213. <TextView
  214. android:layout_width="match_parent"
  215. android:layout_height="wrap_content"
  216. android:layout_weight="1"
  217. android:text="双人认证"
  218. android:textColor="@color/black" />
  219. <TextView
  220. android:layout_width="match_parent"
  221. android:layout_height="wrap_content"
  222. android:layout_weight="1"
  223. android:text="使用量"
  224. android:textColor="@color/black" />
  225. </LinearLayout>
  226. <RelativeLayout
  227. android:layout_width="match_parent"
  228. android:layout_height="match_parent">
  229. <androidx.recyclerview.widget.RecyclerView
  230. android:id="@+id/rvView"
  231. android:layout_width="match_parent"
  232. android:layout_height="match_parent"
  233. android:paddingLeft="13dp"
  234. android:layout_marginBottom="65dp"
  235. tools:listitem="@layout/item_use_ledger" />
  236. <RelativeLayout
  237. android:layout_width="match_parent"
  238. android:layout_height="30dp"
  239. android:layout_alignParentBottom="true"
  240. android:layout_marginTop="10dp"
  241. android:layout_marginBottom="20dp">
  242. <LinearLayout
  243. android:id="@+id/rvPage"
  244. android:layout_width="wrap_content"
  245. android:layout_height="wrap_content"
  246. android:layout_centerInParent="true"
  247. android:orientation="horizontal">
  248. <TextView
  249. android:id="@+id/one"
  250. android:layout_width="30dp"
  251. android:layout_height="25dp"
  252. android:layout_marginLeft="10dp"
  253. android:background="@drawable/bg_sou_suo_page"
  254. android:gravity="center"
  255. android:text="1"
  256. android:textSize="10sp"
  257. android:textColor="@color/white" />
  258. <TextView
  259. android:id="@+id/two"
  260. android:layout_width="30dp"
  261. android:layout_height="25dp"
  262. android:layout_marginLeft="10dp"
  263. android:background="@drawable/bg_sou_suo_two_page"
  264. android:gravity="center"
  265. android:text="2"
  266. android:textSize="10sp"
  267. android:textColor="@color/black"
  268. android:visibility="gone" />
  269. <TextView
  270. android:id="@+id/three"
  271. android:layout_width="30dp"
  272. android:layout_height="25dp"
  273. android:layout_marginLeft="10dp"
  274. android:background="@drawable/bg_sou_suo_two_page"
  275. android:gravity="center"
  276. android:textSize="10sp"
  277. android:text="3"
  278. android:textColor="@color/black"
  279. android:visibility="gone" />
  280. <TextView
  281. android:id="@+id/drop"
  282. android:layout_width="30dp"
  283. android:layout_height="25dp"
  284. android:layout_marginLeft="10dp"
  285. android:background="@drawable/bg_sou_suo_two_page"
  286. android:gravity="center"
  287. android:text="..."
  288. android:textSize="10sp"
  289. android:textColor="@color/black"
  290. android:visibility="gone" />
  291. <TextView
  292. android:id="@+id/many"
  293. android:layout_width="30dp"
  294. android:layout_height="25dp"
  295. android:layout_marginLeft="10dp"
  296. android:background="@drawable/bg_sou_suo_two_page"
  297. android:gravity="center"
  298. android:text="4"
  299. android:textSize="10sp"
  300. android:textColor="@color/black"
  301. android:visibility="gone" />
  302. </LinearLayout>
  303. <Button
  304. android:id="@+id/butUpper"
  305. android:layout_width="65dp"
  306. android:layout_height="25dp"
  307. android:layout_marginLeft="8dp"
  308. android:layout_marginRight="-2dp"
  309. android:layout_centerVertical="true"
  310. android:textSize="10sp"
  311. android:layout_toLeftOf="@+id/rvPage"
  312. android:background="@drawable/bg_up_page"
  313. android:text="上一页"
  314. android:textColor="@color/black" />
  315. <Button
  316. android:id="@+id/butNext"
  317. android:layout_width="65dp"
  318. android:layout_height="25dp"
  319. android:textSize="10sp"
  320. android:layout_centerVertical="true"
  321. android:layout_marginLeft="8dp"
  322. android:layout_toRightOf="@+id/rvPage"
  323. android:background="@drawable/bg_sou_suo_page"
  324. android:text="下一页"
  325. android:textColor="@color/white" />
  326. <Button
  327. android:id="@+id/butReturned"
  328. android:layout_width="wrap_content"
  329. android:layout_height="25dp"
  330. android:layout_alignParentRight="true"
  331. android:layout_marginRight="10dp"
  332. android:textSize="12sp"
  333. android:background="@drawable/bg_sou_suo_page"
  334. android:text="待归还清单"
  335. android:textColor="@color/white" />
  336. </RelativeLayout>
  337. </RelativeLayout>
  338. </LinearLayout>