activity_random_clap.xml 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
  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:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:background="@color/purple_f5"
  8. tools:context="com.zhong.inspection.ui.RandomClapActivity">
  9. <include
  10. android:id="@+id/tool_bar"
  11. layout="@layout/title_toolbar" />
  12. <RelativeLayout
  13. android:id="@+id/rel_hand_clap_view"
  14. android:layout_width="match_parent"
  15. android:layout_height="40dp"
  16. android:layout_below="@+id/tool_bar"
  17. android:background="@color/white"
  18. android:paddingLeft="10dp"
  19. android:paddingRight="10dp">
  20. <TextView
  21. android:layout_width="wrap_content"
  22. android:layout_height="wrap_content"
  23. android:layout_centerVertical="true"
  24. android:text="随手拍管理"
  25. android:textColor="@color/black" />
  26. <ImageView
  27. android:layout_width="20dp"
  28. android:layout_height="20dp"
  29. android:layout_alignParentRight="true"
  30. android:layout_centerVertical="true"
  31. android:background="@mipmap/icon_sspsc_gd" />
  32. </RelativeLayout>
  33. <LinearLayout
  34. android:layout_width="match_parent"
  35. android:layout_height="wrap_content"
  36. android:layout_below="@+id/rel_hand_clap_view"
  37. android:layout_marginTop="10dp"
  38. android:background="@color/white"
  39. android:orientation="vertical"
  40. android:paddingLeft="10dp"
  41. android:paddingRight="10dp">
  42. <TextView
  43. android:layout_width="match_parent"
  44. android:layout_height="35dp"
  45. android:gravity="center_vertical"
  46. android:text="实验室"
  47. android:textColor="@color/black" />
  48. <RelativeLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="35dp"
  51. android:background="@drawable/ic_bgm_edit_user">
  52. <ImageView
  53. android:id="@+id/img_view"
  54. android:layout_width="25dp"
  55. android:layout_height="25dp"
  56. android:layout_centerVertical="true"
  57. android:layout_marginLeft="6dp"
  58. android:visibility="gone"
  59. android:background="@mipmap/icon_sou_suo" />
  60. <TextView
  61. android:id="@+id/ed_subject_name"
  62. android:layout_width="match_parent"
  63. android:layout_height="match_parent"
  64. android:layout_centerVertical="true"
  65. android:layout_marginLeft="4dp"
  66. android:layout_toRightOf="@+id/img_view"
  67. android:background="@null"
  68. android:gravity="start|center"
  69. android:hint="搜索实验室或房间号"
  70. android:textSize="14sp" />
  71. </RelativeLayout>
  72. <TextView
  73. android:layout_width="match_parent"
  74. android:layout_height="35dp"
  75. android:gravity="center_vertical"
  76. android:text="学院"
  77. android:textColor="@color/black" />
  78. <RelativeLayout
  79. android:layout_width="match_parent"
  80. android:layout_height="wrap_content"
  81. android:visibility="gone">
  82. <TextView
  83. android:id="@+id/tv_college_name"
  84. android:layout_width="match_parent"
  85. android:layout_height="35dp"
  86. android:background="@drawable/ic_bgm_item_bm"
  87. android:gravity="center_vertical"
  88. android:visibility="gone" />
  89. <Spinner
  90. android:id="@+id/sp_college_name"
  91. android:layout_width="match_parent"
  92. android:layout_height="35dp"
  93. android:background="@drawable/ic_bgm_edit_user"
  94. android:gravity="center_vertical" />
  95. <ImageView
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:layout_alignParentRight="true"
  99. android:layout_centerVertical="true"
  100. android:layout_marginRight="10dp"
  101. android:background="@mipmap/icon_kzjc_zk" />
  102. </RelativeLayout>
  103. <TextView
  104. android:id="@+id/tv_dept_name"
  105. android:layout_width="match_parent"
  106. android:layout_height="35dp"
  107. android:gravity="center_vertical"
  108. android:background="@drawable/ic_bgm_edit_user" />
  109. <TextView
  110. android:layout_width="wrap_content"
  111. android:layout_height="35dp"
  112. android:gravity="center"
  113. android:text="隐患描述"
  114. android:textColor="@color/black" />
  115. <EditText
  116. android:id="@+id/ed_hazard_describe"
  117. android:layout_width="match_parent"
  118. android:layout_height="80dp"
  119. android:background="@drawable/ic_bgm_edit_user"
  120. android:gravity="start"
  121. android:ellipsize="end"
  122. android:maxEms="50"
  123. android:hint="请输入描述"
  124. android:textSize="14sp" />
  125. <RelativeLayout
  126. android:layout_width="match_parent"
  127. android:layout_height="35dp">
  128. <TextView
  129. android:id="@+id/tv_01"
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:layout_centerVertical="true"
  133. android:text="隐患照片"
  134. android:textColor="@color/black" />
  135. <TextView
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:layout_centerVertical="true"
  139. android:layout_marginLeft="10dp"
  140. android:layout_toRightOf="@+id/tv_01"
  141. android:text="最多上传5张"
  142. android:textSize="13sp" />
  143. </RelativeLayout>
  144. <androidx.recyclerview.widget.RecyclerView
  145. android:id="@+id/img_rv_recycler"
  146. android:layout_width="match_parent"
  147. android:layout_height="wrap_content" />
  148. </LinearLayout>
  149. <TextView
  150. android:id="@+id/tv_commit"
  151. android:layout_width="match_parent"
  152. android:layout_height="45dp"
  153. android:layout_alignParentBottom="true"
  154. android:background="@color/purple_fa"
  155. android:gravity="center"
  156. android:text="提交"
  157. android:textColor="@color/white" />
  158. <TextView
  159. android:id="@+id/tv_random_clap"
  160. android:layout_width="match_parent"
  161. android:layout_height="40dp"
  162. android:layout_above="@+id/tv_commit"
  163. android:layout_marginLeft="40dp"
  164. android:layout_marginRight="40dp"
  165. android:layout_marginBottom="30dp"
  166. android:background="@drawable/ic_bgm_sui_shou_ji"
  167. android:gravity="center"
  168. android:text="随手拍上报记录"
  169. android:textColor="@color/purple_fa" />
  170. </RelativeLayout>