activity_course_details.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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/white"
  8. android:orientation="vertical"
  9. tools:context="com.zhong.inspection.ui.CourseDetailsActivity">
  10. <include
  11. android:id="@+id/tool_bar"
  12. layout="@layout/title_toolbar" />
  13. <RelativeLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="35dp"
  16. android:layout_marginTop="6dp"
  17. android:gravity="center_vertical">
  18. <TextView
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:layout_marginLeft="20dp"
  22. android:layout_marginTop="8dp"
  23. android:text="课程名称: " />
  24. <TextView
  25. android:id="@+id/tv_course_name"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_alignParentRight="true"
  29. android:layout_centerVertical="true"
  30. android:layout_marginRight="20dp"
  31. android:ellipsize="end"
  32. android:maxEms="15"
  33. android:singleLine="true"
  34. android:text="111"
  35. android:textColor="@color/black" />
  36. </RelativeLayout>
  37. <View
  38. android:layout_width="match_parent"
  39. android:layout_height="0.2dp"
  40. android:background="@color/purple_e0" />
  41. <RelativeLayout
  42. android:layout_width="match_parent"
  43. android:layout_height="35dp"
  44. android:gravity="center_vertical">
  45. <TextView
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:layout_marginLeft="20dp"
  49. android:layout_marginTop="8dp"
  50. android:text="主讲老师: " />
  51. <TextView
  52. android:id="@+id/tv_lecturer_name"
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_alignParentRight="true"
  56. android:layout_centerVertical="true"
  57. android:layout_marginRight="20dp"
  58. android:ellipsize="end"
  59. android:maxEms="15"
  60. android:singleLine="true"
  61. android:text="111"
  62. android:textColor="@color/black" />
  63. </RelativeLayout>
  64. <View
  65. android:layout_width="match_parent"
  66. android:layout_height="0.2dp"
  67. android:background="@color/purple_e0" />
  68. <RelativeLayout
  69. android:layout_width="match_parent"
  70. android:layout_height="35dp"
  71. android:gravity="center_vertical">
  72. <TextView
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:layout_marginLeft="20dp"
  76. android:layout_marginTop="8dp"
  77. android:text="上课日期: " />
  78. <TextView
  79. android:id="@+id/tv_coStart_date"
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_alignParentRight="true"
  83. android:layout_centerVertical="true"
  84. android:layout_marginRight="20dp"
  85. android:ellipsize="end"
  86. android:maxEms="15"
  87. android:singleLine="true"
  88. android:text="111"
  89. android:textColor="@color/black" />
  90. </RelativeLayout>
  91. <View
  92. android:layout_width="match_parent"
  93. android:layout_height="0.2dp"
  94. android:background="@color/purple_e0" />
  95. <RelativeLayout
  96. android:layout_width="match_parent"
  97. android:layout_height="35dp"
  98. android:gravity="center_vertical">
  99. <TextView
  100. android:layout_width="wrap_content"
  101. android:layout_height="wrap_content"
  102. android:layout_marginLeft="20dp"
  103. android:layout_marginTop="8dp"
  104. android:text="上课时间: " />
  105. <TextView
  106. android:id="@+id/tv_co_start_time"
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_alignParentRight="true"
  110. android:layout_centerVertical="true"
  111. android:layout_marginRight="20dp"
  112. android:ellipsize="end"
  113. android:maxEms="15"
  114. android:singleLine="true"
  115. android:text="111"
  116. android:textColor="@color/black" />
  117. </RelativeLayout>
  118. <View
  119. android:layout_width="match_parent"
  120. android:layout_height="0.2dp"
  121. android:background="@color/purple_e0" />
  122. <RelativeLayout
  123. android:layout_width="match_parent"
  124. android:layout_height="35dp"
  125. android:gravity="center_vertical">
  126. <TextView
  127. android:layout_width="wrap_content"
  128. android:layout_height="wrap_content"
  129. android:layout_marginLeft="20dp"
  130. android:layout_marginTop="8dp"
  131. android:text="上课地点: " />
  132. <TextView
  133. android:id="@+id/tv_sub_name"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_alignParentRight="true"
  137. android:layout_centerVertical="true"
  138. android:layout_marginRight="20dp"
  139. android:ellipsize="end"
  140. android:maxEms="15"
  141. android:singleLine="true"
  142. android:text="111"
  143. android:textColor="@color/black" />
  144. </RelativeLayout>
  145. <View
  146. android:layout_width="match_parent"
  147. android:layout_height="0.2dp"
  148. android:background="@color/purple_e0" />
  149. <TextView
  150. android:id="@+id/tv_06"
  151. android:layout_width="wrap_content"
  152. android:layout_height="35dp"
  153. android:layout_marginLeft="20dp"
  154. android:layout_marginTop="8dp"
  155. android:gravity="center_vertical"
  156. android:text="课程内容: " />
  157. <TextView
  158. android:id="@+id/tv_content"
  159. android:layout_width="match_parent"
  160. android:layout_height="wrap_content"
  161. android:layout_marginLeft="20dp"
  162. android:layout_marginTop="8dp"
  163. android:maxLength="90"
  164. android:ellipsize="end"
  165. android:layout_marginRight="20dp"
  166. android:layout_toRightOf="@+id/tv_06"
  167. android:text="cei12315345615313515315315315315315313153153153153153153153153153153153153153153153153153153153153153153153"
  168. android:textColor="@color/black" />
  169. <View
  170. android:layout_width="match_parent"
  171. android:layout_height="0.2dp"
  172. android:background="@color/purple_e0" />
  173. <LinearLayout
  174. android:id="@+id/linRv"
  175. android:layout_width="match_parent"
  176. android:layout_height="wrap_content"
  177. android:visibility="gone"
  178. android:orientation="vertical">
  179. <TextView
  180. android:layout_width="wrap_content"
  181. android:layout_height="35dp"
  182. android:layout_marginLeft="20dp"
  183. android:layout_marginTop="5dp"
  184. android:gravity="center_vertical"
  185. android:text="上课照片" />
  186. <androidx.recyclerview.widget.RecyclerView
  187. android:id="@+id/rv_recycler_photos"
  188. android:layout_width="match_parent"
  189. android:layout_height="80dp"
  190. android:layout_marginLeft="20dp"
  191. android:layout_marginTop="8dp"
  192. android:layout_marginRight="10dp" />
  193. </LinearLayout>
  194. <TextView
  195. android:id="@+id/tvSm"
  196. android:layout_width="wrap_content"
  197. android:layout_height="35dp"
  198. android:layout_marginLeft="20dp"
  199. android:layout_marginTop="8dp"
  200. android:gravity="center_vertical"
  201. android:text="课程总结" />
  202. <TextView
  203. android:id="@+id/tvCourseSm"
  204. android:layout_width="wrap_content"
  205. android:layout_height="wrap_content"
  206. android:layout_marginLeft="20dp"
  207. android:layout_marginTop="8dp"
  208. android:layout_marginRight="10dp"
  209. android:maxLength="80"
  210. android:textColor="@color/black" />
  211. <RelativeLayout
  212. android:layout_width="match_parent"
  213. android:layout_height="45dp"
  214. android:layout_marginTop="10dp">
  215. <LinearLayout
  216. android:layout_width="100dp"
  217. android:layout_height="match_parent"
  218. android:layout_marginLeft="40dp"
  219. android:background="@drawable/ic_bgm_reservation"
  220. android:gravity="center_vertical"
  221. android:orientation="vertical">
  222. <TextView
  223. android:id="@+id/tv_people_count"
  224. android:layout_width="wrap_content"
  225. android:layout_height="wrap_content"
  226. android:layout_gravity="center"
  227. android:text="预约人数:100"
  228. android:textColor="@color/black" />
  229. </LinearLayout>
  230. <LinearLayout
  231. android:id="@+id/lin_course"
  232. android:layout_width="100dp"
  233. android:layout_height="match_parent"
  234. android:layout_alignParentRight="true"
  235. android:layout_marginRight="40dp"
  236. android:background="@drawable/ic_bgm_sign_in"
  237. android:gravity="center"
  238. android:orientation="vertical">
  239. <TextView
  240. android:id="@+id/tv_sign_in"
  241. android:layout_width="wrap_content"
  242. android:layout_height="wrap_content"
  243. android:layout_gravity="center"
  244. android:text="签到人数:100"
  245. android:textColor="@color/black" />
  246. </LinearLayout>
  247. </RelativeLayout>
  248. <RelativeLayout
  249. android:layout_width="match_parent"
  250. android:layout_height="30dp"
  251. android:layout_marginLeft="20dp"
  252. android:visibility="gone">
  253. <TextView
  254. android:layout_width="wrap_content"
  255. android:layout_height="wrap_content"
  256. android:layout_centerVertical="true"
  257. android:text="签到名单"
  258. android:textColor="@color/black" />
  259. </RelativeLayout>
  260. <com.scwang.smart.refresh.layout.SmartRefreshLayout
  261. android:id="@+id/refreshLayout"
  262. android:layout_width="match_parent"
  263. android:layout_height="match_parent"
  264. android:layout_marginLeft="20dp"
  265. android:background="@color/white"
  266. android:orientation="vertical"
  267. android:visibility="gone">
  268. <com.scwang.smart.refresh.header.ClassicsHeader
  269. android:layout_width="match_parent"
  270. android:layout_height="wrap_content" />
  271. <androidx.recyclerview.widget.RecyclerView
  272. android:id="@+id/rv_recycler_view"
  273. android:layout_width="match_parent"
  274. android:layout_height="match_parent"
  275. tools:itemCount="2"
  276. tools:listitem="@layout/item_school_begins_fm" />
  277. <com.scwang.smart.refresh.footer.ClassicsFooter
  278. android:layout_width="match_parent"
  279. android:layout_height="wrap_content" />
  280. </com.scwang.smart.refresh.layout.SmartRefreshLayout>
  281. </LinearLayout>