item_comprehensive.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="wrap_content"
  5. android:background="@color/purple_f5"
  6. android:orientation="vertical"
  7. android:paddingLeft="6dp"
  8. android:paddingTop="6dp"
  9. android:paddingRight="6dp">
  10. <RelativeLayout
  11. android:layout_width="match_parent"
  12. android:layout_height="55dp"
  13. android:background="@color/white">
  14. <TextView
  15. android:layout_width="wrap_content"
  16. android:layout_height="wrap_content"
  17. android:layout_centerHorizontal="true"
  18. android:layout_centerVertical="true"
  19. android:text="不符合项"
  20. android:textColor="@color/black" />
  21. <ImageView
  22. android:id="@+id/img_delete"
  23. android:layout_width="25dp"
  24. android:layout_height="25dp"
  25. android:layout_alignParentRight="true"
  26. android:layout_centerVertical="true"
  27. android:layout_marginRight="10dp"
  28. android:background="@mipmap/icon_delete_1" />
  29. </RelativeLayout>
  30. <TextView
  31. android:layout_width="match_parent"
  32. android:layout_height="35dp"
  33. android:layout_marginTop="10dp"
  34. android:background="@color/white"
  35. android:gravity="center_vertical"
  36. android:text="隐患等级"
  37. android:textColor="@color/black" />
  38. <RelativeLayout
  39. android:layout_width="wrap_content"
  40. android:layout_height="35dp"
  41. android:background="@color/white">
  42. <Spinner
  43. android:id="@+id/spinner_view"
  44. android:layout_width="match_parent"
  45. android:layout_height="match_parent"
  46. android:layout_centerVertical="true"
  47. android:background="@drawable/ic_bgm_edit_user"
  48. android:entries="@array/spinnerclass" />
  49. <ImageView
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:layout_alignParentRight="true"
  53. android:layout_centerVertical="true"
  54. android:layout_marginRight="10dp"
  55. android:background="@mipmap/icon_kzjc_zk" />
  56. </RelativeLayout>
  57. <LinearLayout
  58. android:layout_width="match_parent"
  59. android:layout_height="wrap_content"
  60. android:background="@color/white"
  61. android:gravity="center_vertical"
  62. android:orientation="vertical">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="30dp"
  66. android:gravity="center_vertical"
  67. android:text="检查项目"
  68. android:textColor="@color/black" />
  69. <RelativeLayout
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content">
  72. <TextView
  73. android:id="@+id/tv_check_name"
  74. android:layout_width="match_parent"
  75. android:layout_height="35dp"
  76. android:layout_centerVertical="true"
  77. android:background="@drawable/ic_bgm_edit_user"
  78. android:entries="@array/spinnerclass"
  79. android:gravity="center_vertical"
  80. android:textColor="@color/black" />
  81. <ImageView
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_alignParentRight="true"
  85. android:layout_centerVertical="true"
  86. android:layout_marginRight="10dp"
  87. android:background="@mipmap/icon_kzjc_zk" />
  88. </RelativeLayout>
  89. <RelativeLayout
  90. android:id="@+id/lin_count"
  91. android:layout_width="match_parent"
  92. android:layout_height="38dp"
  93. android:gravity="center_vertical"
  94. android:visibility="gone">
  95. <TextView
  96. android:id="@+id/tv_1"
  97. android:layout_width="wrap_content"
  98. android:layout_height="wrap_content"
  99. android:text="此检查项在当前实验室累计出现"
  100. android:textColor="@color/black" />
  101. <TextView
  102. android:id="@+id/tv_hazard_count"
  103. android:layout_width="wrap_content"
  104. android:layout_height="wrap_content"
  105. android:layout_toRightOf="@+id/tv_1"
  106. android:textColor="@color/purple_ff00" />
  107. <TextView
  108. android:layout_width="match_parent"
  109. android:layout_height="wrap_content"
  110. android:layout_toRightOf="@+id/tv_hazard_count"
  111. android:text="次隐患"
  112. android:textColor="@color/black" />
  113. </RelativeLayout>
  114. </LinearLayout>
  115. <TextView
  116. android:layout_width="match_parent"
  117. android:layout_height="35dp"
  118. android:background="@color/white"
  119. android:gravity="center_vertical"
  120. android:text="检查项目"
  121. android:textColor="@color/black"
  122. android:visibility="gone" />
  123. <LinearLayout
  124. android:layout_width="wrap_content"
  125. android:layout_height="35dp"
  126. android:background="@color/white"
  127. android:orientation="horizontal"
  128. android:visibility="gone">
  129. <Spinner
  130. android:id="@+id/sr_view_one"
  131. android:layout_width="100dp"
  132. android:layout_height="match_parent"
  133. android:layout_centerVertical="true"
  134. android:layout_weight="1"
  135. android:background="@drawable/ic_bgm_edit_user" />
  136. <Spinner
  137. android:id="@+id/sr_view_two"
  138. android:layout_width="100dp"
  139. android:layout_height="match_parent"
  140. android:layout_centerVertical="true"
  141. android:layout_weight="1"
  142. android:background="@drawable/ic_bgm_edit_user" />
  143. <Spinner
  144. android:id="@+id/sr_view_three"
  145. android:layout_width="100dp"
  146. android:layout_height="match_parent"
  147. android:layout_centerVertical="true"
  148. android:layout_weight="1"
  149. android:background="@drawable/ic_bgm_edit_user" />
  150. <Spinner
  151. android:id="@+id/sr_view_four"
  152. android:layout_width="100dp"
  153. android:layout_height="match_parent"
  154. android:layout_centerVertical="true"
  155. android:layout_weight="1"
  156. android:background="@drawable/ic_bgm_edit_user" />
  157. </LinearLayout>
  158. <LinearLayout
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content"
  161. android:background="@color/white"
  162. android:orientation="vertical">
  163. <TextView
  164. android:layout_width="match_parent"
  165. android:layout_height="35dp"
  166. android:background="@color/white"
  167. android:gravity="center_vertical"
  168. android:text="检查要点"
  169. android:textColor="@color/black" />
  170. <EditText
  171. android:id="@+id/ed_ke_point"
  172. android:layout_width="match_parent"
  173. android:layout_height="wrap_content"
  174. android:background="@drawable/shape_item_1"
  175. android:gravity="start"
  176. android:maxLength="1000"
  177. android:hint="未查到此项检查要点,可在此输入添加"
  178. android:padding="6dp"
  179. android:textSize="14sp" />
  180. <TextView
  181. android:layout_width="match_parent"
  182. android:layout_height="35dp"
  183. android:background="@color/white"
  184. android:gravity="center_vertical"
  185. android:text="隐患描述"
  186. android:textColor="@color/black" />
  187. <EditText
  188. android:id="@+id/ed_hazard_describe"
  189. android:layout_width="match_parent"
  190. android:layout_height="95dp"
  191. android:background="@drawable/shape_item_1"
  192. android:gravity="start"
  193. android:hint="请输入描述内容"
  194. android:padding="6dp"
  195. android:textSize="14sp" />
  196. </LinearLayout>
  197. <RelativeLayout
  198. android:layout_width="match_parent"
  199. android:layout_height="35dp"
  200. android:background="@color/white">
  201. <TextView
  202. android:id="@+id/tv_01"
  203. android:layout_width="wrap_content"
  204. android:layout_height="wrap_content"
  205. android:layout_centerVertical="true"
  206. android:text="隐患照片"
  207. android:textColor="@color/black" />
  208. <TextView
  209. android:layout_width="wrap_content"
  210. android:layout_height="wrap_content"
  211. android:layout_centerVertical="true"
  212. android:layout_marginLeft="10dp"
  213. android:layout_toRightOf="@+id/tv_01"
  214. android:text="最多上传5张"
  215. android:textSize="13sp" />
  216. </RelativeLayout>
  217. <RelativeLayout
  218. android:layout_width="match_parent"
  219. android:layout_height="110dp"
  220. android:background="@color/white">
  221. <androidx.recyclerview.widget.RecyclerView
  222. android:id="@+id/img_rv_recycler"
  223. android:layout_width="match_parent"
  224. android:layout_height="110dp" />
  225. </RelativeLayout>
  226. <LinearLayout
  227. android:id="@+id/linTwos"
  228. android:layout_width="match_parent"
  229. android:layout_height="wrap_content"
  230. android:background="@color/white"
  231. android:orientation="vertical">
  232. <RelativeLayout
  233. android:layout_width="match_parent"
  234. android:layout_height="35dp"
  235. android:layout_marginTop="10dp"
  236. android:background="@color/white">
  237. <TextView
  238. android:layout_width="wrap_content"
  239. android:layout_height="wrap_content"
  240. android:layout_centerVertical="true"
  241. android:text="语音备注"
  242. android:textColor="@color/black" />
  243. <TextView
  244. android:id="@+id/tvTalk"
  245. android:layout_width="wrap_content"
  246. android:layout_height="match_parent"
  247. android:layout_alignParentRight="true"
  248. android:layout_centerVertical="true"
  249. android:background="@drawable/ic_bgm_login_but"
  250. android:gravity="center_vertical"
  251. android:paddingLeft="10dp"
  252. android:paddingRight="10dp"
  253. android:text="按住说话"
  254. android:textColor="@color/white" />
  255. </RelativeLayout>
  256. <androidx.recyclerview.widget.RecyclerView
  257. android:id="@+id/voice_recycler_view"
  258. android:layout_width="match_parent"
  259. android:padding="6dp"
  260. android:visibility="gone"
  261. android:layout_height="wrap_content"
  262. android:layout_marginTop="4dp"
  263. android:background="@drawable/shape_item_1" />
  264. </LinearLayout>
  265. </LinearLayout>