activity_history_fragment.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299
  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:orientation="vertical">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="match_parent"
  11. android:background="@color/mainBackGroundColor"
  12. android:orientation="vertical">
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="match_parent"
  16. android:background="@color/white"
  17. android:orientation="vertical">
  18. <LinearLayout
  19. android:layout_width="wrap_content"
  20. android:layout_height="wrap_content"
  21. android:orientation="horizontal"
  22. android:layout_margin="8dp">
  23. <LinearLayout
  24. android:id="@+id/typePatient"
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27. android:layout_gravity="center"
  28. android:orientation="horizontal">
  29. <LinearLayout
  30. android:id="@+id/patientLeftRound"
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_gravity="center"
  34. android:background="@drawable/shape_left_round">
  35. <ImageView
  36. android:id="@+id/ivPatient"
  37. android:layout_width="40dp"
  38. android:layout_height="40dp"
  39. android:padding="8dp"
  40. android:layout_gravity="center"
  41. android:src="@drawable/ic_accessible_black_24dp" />
  42. </LinearLayout>
  43. <LinearLayout
  44. android:id="@+id/patientRightRound"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_gravity="center"
  48. android:background="@drawable/shape_right_round2">
  49. <TextView
  50. android:id="@+id/tvPatient"
  51. android:layout_width="wrap_content"
  52. android:layout_height="40dp"
  53. android:padding="8dp"
  54. android:text="@string/typePatient"
  55. android:textColor="@color/black"
  56. android:textSize="18sp" />
  57. </LinearLayout>
  58. </LinearLayout>
  59. <LinearLayout
  60. android:id="@+id/typeWriter"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:layout_gravity="center"
  64. android:layout_marginLeft="24dp"
  65. android:orientation="horizontal">
  66. <LinearLayout
  67. android:id="@+id/writerLeftRound"
  68. android:layout_width="wrap_content"
  69. android:layout_height="wrap_content"
  70. android:layout_gravity="center"
  71. android:background="@drawable/shape_left_round">
  72. <ImageView
  73. android:id="@+id/ivWriter"
  74. android:layout_width="40dp"
  75. android:layout_height="40dp"
  76. android:padding="10dp"
  77. android:layout_gravity="center"
  78. android:src="@drawable/ic_doctor" />
  79. </LinearLayout>
  80. <LinearLayout
  81. android:id="@+id/writerRightRound"
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content"
  84. android:layout_gravity="center"
  85. android:background="@drawable/shape_right_round2">
  86. <TextView
  87. android:id="@+id/tvWriter"
  88. android:layout_width="wrap_content"
  89. android:layout_height="40dp"
  90. android:padding="8dp"
  91. android:text="@string/typeWriter"
  92. android:textColor="@color/black"
  93. android:textSize="18sp" />
  94. </LinearLayout>
  95. </LinearLayout>
  96. </LinearLayout>
  97. <LinearLayout
  98. android:layout_width="match_parent"
  99. android:layout_height="wrap_content"
  100. android:layout_marginLeft="8dp">
  101. <TextView
  102. android:layout_width="match_parent"
  103. android:layout_height="match_parent"
  104. android:text="@string/inquiryPeriod"
  105. android:textColor="@color/black"
  106. android:textSize="18sp"
  107. android:textStyle="bold" />
  108. </LinearLayout>
  109. <LinearLayout
  110. android:layout_width="match_parent"
  111. android:layout_height="wrap_content"
  112. android:layout_marginTop="8dp"
  113. android:layout_marginLeft="8dp"
  114. android:layout_marginRight="8dp"
  115. android:orientation="horizontal">
  116. <LinearLayout
  117. android:id="@+id/leftDateLayout"
  118. android:layout_width="match_parent"
  119. android:layout_height="wrap_content"
  120. android:layout_marginRight="4dp"
  121. android:layout_weight="1"
  122. android:background="@drawable/shape_item"
  123. android:orientation="horizontal">
  124. <LinearLayout
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:layout_gravity="center"
  128. android:layout_weight="1">
  129. <TextView
  130. android:id="@+id/tvLeftDate"
  131. android:layout_width="match_parent"
  132. android:layout_height="wrap_content"
  133. android:layout_gravity="center"
  134. android:padding="8dp"
  135. android:ellipsize="end"
  136. android:gravity="center"
  137. android:singleLine="true"
  138. android:text="2019/11/12"
  139. android:textSize="16sp" />
  140. </LinearLayout>
  141. <LinearLayout
  142. android:layout_width="wrap_content"
  143. android:layout_height="match_parent"
  144. android:paddingHorizontal="5dp"
  145. android:layout_gravity="center"
  146. android:background="@drawable/shape_right_round">
  147. <ImageView
  148. android:layout_width="wrap_content"
  149. android:layout_height="match_parent"
  150. android:paddingHorizontal="3dp"
  151. android:src="@drawable/date" />
  152. </LinearLayout>
  153. </LinearLayout>
  154. <LinearLayout
  155. android:id="@+id/rightDateLayout"
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:layout_marginLeft="4dp"
  159. android:layout_weight="1"
  160. android:background="@drawable/shape_item"
  161. android:orientation="horizontal">
  162. <LinearLayout
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_gravity="center"
  166. android:layout_weight="1">
  167. <TextView
  168. android:id="@+id/tvRightDate"
  169. android:layout_width="match_parent"
  170. android:layout_height="wrap_content"
  171. android:layout_gravity="center"
  172. android:padding="8dp"
  173. android:ellipsize="end"
  174. android:gravity="center"
  175. android:singleLine="true"
  176. android:text="2019/11/12"
  177. android:textSize="16sp" />
  178. </LinearLayout>
  179. <LinearLayout
  180. android:layout_width="wrap_content"
  181. android:layout_height="match_parent"
  182. android:paddingHorizontal="5dp"
  183. android:layout_gravity="center"
  184. android:background="@drawable/shape_right_round">
  185. <ImageView
  186. android:layout_width="wrap_content"
  187. android:layout_height="match_parent"
  188. android:paddingHorizontal="3dp"
  189. android:src="@drawable/date" />
  190. </LinearLayout>
  191. </LinearLayout>
  192. </LinearLayout>
  193. <Button
  194. android:id="@+id/btnHistorySearch"
  195. android:layout_width="match_parent"
  196. android:layout_height="35dp"
  197. android:layout_margin="8dp"
  198. android:layout_marginLeft="4dp"
  199. android:layout_marginRight="4dp"
  200. android:background="@drawable/shape_logout"
  201. android:text="@string/inquiry"
  202. android:textColor="@color/white"
  203. android:textSize="18sp"
  204. style="?android:attr/borderlessButtonStyle"/>
  205. <LinearLayout
  206. android:layout_width="match_parent"
  207. android:layout_height="wrap_content"
  208. android:layout_marginHorizontal="8dp">
  209. <CheckBox
  210. android:id="@+id/checkAll"
  211. android:theme="@style/CheckBoxTheme"
  212. android:layout_width="match_parent"
  213. android:layout_height="match_parent"
  214. android:layout_weight="1"
  215. android:text="@string/all"
  216. android:textSize="14sp" />
  217. <CheckBox
  218. android:id="@+id/checkTemp"
  219. android:theme="@style/CheckBoxTheme"
  220. android:layout_width="match_parent"
  221. android:layout_height="match_parent"
  222. android:layout_weight="1"
  223. android:text="@string/temp"
  224. android:textSize="14sp" />
  225. <CheckBox
  226. android:id="@+id/checkCert"
  227. android:theme="@style/CheckBoxTheme"
  228. android:layout_width="match_parent"
  229. android:layout_height="wrap_content"
  230. android:layout_weight="1"
  231. android:text="@string/cert"
  232. android:textSize="14sp" />
  233. <CheckBox
  234. android:id="@+id/checkConfirm"
  235. android:theme="@style/CheckBoxTheme"
  236. android:layout_width="match_parent"
  237. android:layout_height="match_parent"
  238. android:layout_weight="1"
  239. android:text="@string/confirm"
  240. android:textSize="14sp" />
  241. <CheckBox
  242. android:id="@+id/checkPrint"
  243. android:theme="@style/CheckBoxTheme"
  244. android:layout_width="match_parent"
  245. android:layout_height="match_parent"
  246. android:layout_weight="1"
  247. android:text="@string/print"
  248. android:textSize="14sp" />
  249. </LinearLayout>
  250. <LinearLayout
  251. android:layout_width="match_parent"
  252. android:layout_height="match_parent"
  253. android:layout_margin="8dp">
  254. <RelativeLayout
  255. android:layout_width="match_parent"
  256. android:layout_height="match_parent">
  257. <androidx.recyclerview.widget.RecyclerView
  258. android:id="@+id/historyRecyclerView"
  259. android:layout_width="match_parent"
  260. android:layout_height="match_parent" />
  261. <TextView
  262. android:layout_width="wrap_content"
  263. android:layout_height="wrap_content"
  264. android:layout_centerInParent="true"
  265. android:text="@string/emptyHistory"
  266. android:textSize="18sp" />
  267. </RelativeLayout>
  268. </LinearLayout>
  269. </LinearLayout>
  270. </LinearLayout>
  271. </LinearLayout>