fragment_hazard_inspection.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/purple_f5"
  6. android:orientation="vertical"
  7. tools:context="com.zhong.inspection.ui.HazardInspectionFragment">
  8. <ScrollView
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content">
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:orientation="vertical">
  15. <RelativeLayout
  16. style="@style/defectRelView"
  17. android:layout_marginTop="6dp">
  18. <TextView
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:text="学院:" />
  22. <TextView
  23. android:id="@+id/tv_collegeName"
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:layout_alignParentRight="true"
  27. android:textColor="@color/black" />
  28. </RelativeLayout>
  29. <View
  30. android:layout_width="match_parent"
  31. android:layout_height="1dp"
  32. android:background="@color/purple_d8" />
  33. <RelativeLayout style="@style/defectRelView">
  34. <TextView
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:text="实验室:" />
  38. <TextView
  39. android:id="@+id/tv_subjectName"
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:layout_alignParentRight="true"
  43. android:textColor="@color/black" />
  44. </RelativeLayout>
  45. <View
  46. android:layout_width="match_parent"
  47. android:layout_height="1dp"
  48. android:background="@color/purple_d8" />
  49. <RelativeLayout style="@style/defectRelView">
  50. <TextView
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:text="楼栋:" />
  54. <TextView
  55. android:id="@+id/tv_buildName"
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_alignParentRight="true"
  59. android:textColor="@color/black" />
  60. </RelativeLayout>
  61. <View
  62. android:layout_width="match_parent"
  63. android:layout_height="1dp"
  64. android:background="@color/purple_d8" />
  65. <RelativeLayout style="@style/defectRelView">
  66. <TextView
  67. android:layout_width="wrap_content"
  68. android:layout_height="wrap_content"
  69. android:text="检查组织:" />
  70. <TextView
  71. android:id="@+id/tv_organization"
  72. android:layout_width="wrap_content"
  73. android:layout_height="wrap_content"
  74. android:layout_alignParentRight="true"
  75. android:text="实验室自查"
  76. android:textColor="@color/black" />
  77. </RelativeLayout>
  78. <View
  79. android:layout_width="match_parent"
  80. android:layout_height="1dp"
  81. android:background="@color/purple_d8" />
  82. <RelativeLayout style="@style/defectRelView">
  83. <TextView
  84. android:layout_width="wrap_content"
  85. android:layout_height="wrap_content"
  86. android:text="检查范围:" />
  87. <TextView
  88. android:id="@+id/tv_examType"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:layout_alignParentRight="true"
  92. android:text="实验室"
  93. android:textColor="@color/black" />
  94. </RelativeLayout>
  95. <View
  96. android:layout_width="match_parent"
  97. android:layout_height="1dp"
  98. android:background="@color/purple_d8" />
  99. <RelativeLayout style="@style/defectRelView">
  100. <TextView
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="计划标题:" />
  104. <TextView
  105. android:id="@+id/tv_title"
  106. android:layout_width="wrap_content"
  107. android:layout_height="wrap_content"
  108. android:maxLines="1"
  109. android:ellipsize="end"
  110. android:maxEms="30"
  111. android:layout_alignParentRight="true"
  112. android:textColor="@color/black" />
  113. </RelativeLayout>
  114. <RelativeLayout
  115. style="@style/defectRelView"
  116. android:layout_marginTop="10dp">
  117. <TextView
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:text="检查结果:" />
  121. <TextView
  122. android:id="@+id/tv_checkResult"
  123. android:layout_width="wrap_content"
  124. android:layout_height="wrap_content"
  125. android:layout_alignParentRight="true"
  126. android:text="不符合"
  127. android:textColor="@color/black" />
  128. </RelativeLayout>
  129. <RelativeLayout style="@style/defectRelView">
  130. <TextView
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:text="整改期限:" />
  134. <TextView
  135. android:id="@+id/tv_rectifyDeadline"
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:layout_alignParentRight="true"
  139. android:textColor="@color/black" />
  140. </RelativeLayout>
  141. <View
  142. android:layout_width="match_parent"
  143. android:layout_height="1dp"
  144. android:background="@color/purple_d8" />
  145. <RelativeLayout style="@style/defectRelView">
  146. <TextView
  147. android:layout_width="wrap_content"
  148. android:layout_height="wrap_content"
  149. android:text="整改通知:" />
  150. <TextView
  151. android:id="@+id/rectifyNotice"
  152. android:layout_width="wrap_content"
  153. android:layout_height="wrap_content"
  154. android:text="111"
  155. android:layout_alignParentRight="true"
  156. android:textColor="@color/black" />
  157. </RelativeLayout>
  158. <View
  159. android:layout_width="match_parent"
  160. android:layout_height="1dp"
  161. android:background="@color/purple_d8" />
  162. <RelativeLayout style="@style/defectRelView">
  163. <TextView
  164. android:layout_width="wrap_content"
  165. android:layout_height="wrap_content"
  166. android:text="检查者:" />
  167. <TextView
  168. android:id="@+id/tv_checkUser"
  169. android:layout_width="wrap_content"
  170. android:layout_height="wrap_content"
  171. android:layout_alignParentRight="true"
  172. android:textColor="@color/black" />
  173. </RelativeLayout>
  174. <View
  175. android:layout_width="match_parent"
  176. android:layout_height="1dp"
  177. android:background="@color/purple_d8" />
  178. <RelativeLayout style="@style/defectRelView">
  179. <TextView
  180. android:layout_width="wrap_content"
  181. android:layout_height="wrap_content"
  182. android:text="检查时间:" />
  183. <TextView
  184. android:id="@+id/tv_checkTime"
  185. android:layout_width="wrap_content"
  186. android:layout_height="wrap_content"
  187. android:layout_alignParentRight="true"
  188. android:textColor="@color/black" />
  189. </RelativeLayout>
  190. <RelativeLayout
  191. android:id="@+id/rel_view"
  192. android:layout_width="match_parent"
  193. android:layout_height="wrap_content"
  194. android:layout_marginTop="6dp"
  195. android:layout_marginRight="10dp"
  196. android:background="@color/white"
  197. android:paddingLeft="10dp">
  198. <TextView
  199. android:id="@+id/tv_hazard_name"
  200. android:layout_width="match_parent"
  201. android:layout_height="38dp"
  202. android:layout_marginTop="8dp"
  203. android:gravity="center_vertical"
  204. android:text="烘箱-H1002"
  205. android:textColor="@color/black" />
  206. <ImageView
  207. android:layout_width="wrap_content"
  208. android:layout_height="wrap_content"
  209. android:layout_alignParentRight="true"
  210. android:layout_centerVertical="true"
  211. android:background="@mipmap/icon_kzjc_zk"
  212. android:gravity="center_vertical"
  213. android:padding="8dp" />
  214. </RelativeLayout>
  215. <include
  216. android:id="@+id/icnView"
  217. layout="@layout/item_hazard_view" />
  218. </LinearLayout>
  219. </ScrollView>
  220. </LinearLayout>