item_daily_payment.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:tools="http://schemas.android.com/tools"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:layout_marginTop="@dimen/common_padding"
  7. android:layout_marginBottom="@dimen/common_padding"
  8. android:background="@drawable/shape_corner_stroke_white"
  9. android:orientation="vertical"
  10. tools:viewBindingIgnore="true">
  11. <LinearLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:layout_margin="@dimen/common_padding"
  15. android:orientation="vertical"
  16. tools:ignore="UselessParent">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginTop="@dimen/common_padding"
  21. android:orientation="horizontal"
  22. tools:ignore="UseCompoundDrawables">
  23. <TextView
  24. android:id="@+id/payment_name"
  25. android:layout_width="0dp"
  26. android:layout_height="match_parent"
  27. android:layout_marginEnd="50dp"
  28. android:layout_weight="1"
  29. android:maxLines="1"
  30. android:textColor="@color/text_color_blue"
  31. android:textSize="@dimen/text_size_medium"
  32. android:textStyle="bold" />
  33. <ImageView
  34. android:id="@+id/delete"
  35. android:layout_width="@dimen/common_padding_heavy"
  36. android:layout_height="@dimen/common_padding_heavy"
  37. android:layout_marginEnd="@dimen/common_padding"
  38. android:src="@mipmap/icon_delete"
  39. tools:ignore="ContentDescription" />
  40. </LinearLayout>
  41. <View
  42. android:layout_width="match_parent"
  43. android:layout_height="@dimen/line"
  44. android:layout_marginTop="@dimen/common_padding"
  45. android:layout_marginBottom="@dimen/common_padding"
  46. android:background="@color/line_color" />
  47. <LinearLayout
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:layout_marginTop="@dimen/common_padding"
  51. android:orientation="horizontal">
  52. <TextView
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_gravity="center"
  56. android:text="@string/payment_revert"
  57. android:textSize="@dimen/text_size_medium" />
  58. <TextView
  59. android:id="@+id/payment_revert"
  60. android:layout_width="0dp"
  61. android:layout_height="match_parent"
  62. android:layout_weight="1"
  63. android:background="@color/white"
  64. android:gravity="end"
  65. android:singleLine="true"
  66. android:textSize="@dimen/text_size_medium" />
  67. </LinearLayout>
  68. <View
  69. android:layout_width="match_parent"
  70. android:layout_height="@dimen/line"
  71. android:layout_marginTop="@dimen/common_padding_huge"
  72. android:layout_marginBottom="@dimen/common_padding"
  73. android:background="@color/line_color" />
  74. <LinearLayout
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:layout_marginTop="@dimen/common_padding"
  78. android:orientation="horizontal">
  79. <TextView
  80. android:layout_width="wrap_content"
  81. android:layout_height="wrap_content"
  82. android:layout_gravity="center"
  83. android:text="@string/payment_creator"
  84. android:textSize="@dimen/text_size_medium" />
  85. <TextView
  86. android:id="@+id/payment_creator"
  87. android:layout_width="0dp"
  88. android:layout_height="match_parent"
  89. android:layout_weight="1"
  90. android:background="@color/white"
  91. android:gravity="end"
  92. android:singleLine="true"
  93. android:textSize="@dimen/text_size_medium" />
  94. </LinearLayout>
  95. <View
  96. android:layout_width="match_parent"
  97. android:layout_height="@dimen/line"
  98. android:layout_marginTop="@dimen/common_padding_huge"
  99. android:layout_marginBottom="@dimen/common_padding"
  100. android:background="@color/line_color" />
  101. <LinearLayout
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_marginTop="@dimen/common_padding"
  105. android:orientation="horizontal">
  106. <TextView
  107. android:layout_width="wrap_content"
  108. android:layout_height="wrap_content"
  109. android:layout_gravity="center"
  110. android:text="@string/total_payment"
  111. android:textSize="@dimen/text_size_medium" />
  112. <TextView
  113. android:id="@+id/total_payment"
  114. android:layout_width="0dp"
  115. android:layout_height="match_parent"
  116. android:layout_weight="1"
  117. android:background="@color/white"
  118. android:gravity="end"
  119. android:singleLine="true"
  120. android:textSize="@dimen/text_size_medium" />
  121. </LinearLayout>
  122. <View
  123. android:layout_width="match_parent"
  124. android:layout_height="@dimen/line"
  125. android:layout_marginTop="@dimen/common_padding_huge"
  126. android:layout_marginBottom="@dimen/common_padding"
  127. android:background="@color/line_color" />
  128. <LinearLayout
  129. android:layout_width="match_parent"
  130. android:layout_height="wrap_content"
  131. android:layout_marginTop="@dimen/common_padding"
  132. android:orientation="horizontal">
  133. <TextView
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_gravity="center"
  137. android:text="@string/payment_create_time"
  138. android:textSize="@dimen/text_size_medium" />
  139. <TextView
  140. android:id="@+id/create_time"
  141. android:layout_width="0dp"
  142. android:layout_height="match_parent"
  143. android:layout_weight="1"
  144. android:background="@color/white"
  145. android:gravity="end"
  146. android:singleLine="true"
  147. android:textSize="@dimen/text_size_medium" />
  148. </LinearLayout>
  149. <View
  150. android:layout_width="match_parent"
  151. android:layout_height="@dimen/line"
  152. android:layout_marginTop="@dimen/common_padding_huge"
  153. android:layout_marginBottom="@dimen/common_padding"
  154. android:background="@color/line_color" />
  155. <LinearLayout
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:layout_marginTop="@dimen/common_padding"
  159. android:baselineAligned="false"
  160. android:orientation="horizontal">
  161. <LinearLayout
  162. android:layout_width="0dp"
  163. android:layout_height="wrap_content"
  164. android:layout_weight="1"
  165. android:orientation="horizontal">
  166. <TextView
  167. android:layout_width="wrap_content"
  168. android:layout_height="wrap_content"
  169. android:layout_gravity="start"
  170. android:text="@string/finance_depart_verify"
  171. android:textSize="@dimen/text_size_medium" />
  172. <LinearLayout
  173. android:layout_width="match_parent"
  174. android:layout_height="wrap_content"
  175. android:gravity="end|center_vertical"
  176. tools:ignore="UseCompoundDrawables">
  177. <TextView
  178. android:id="@+id/finance_status"
  179. android:layout_width="wrap_content"
  180. android:layout_height="wrap_content"
  181. android:text="@string/verify_passed"
  182. android:textColor="@color/passed"
  183. android:textSize="@dimen/text_size_medium" />
  184. <ImageView
  185. android:id="@+id/finance_icon"
  186. android:layout_width="@dimen/common_padding_huge"
  187. android:layout_height="@dimen/common_padding_huge"
  188. android:layout_marginStart="@dimen/common_padding_small"
  189. android:layout_marginEnd="@dimen/common_padding"
  190. android:gravity="center"
  191. android:src="@mipmap/icon_passed"
  192. tools:ignore="ContentDescription" />
  193. </LinearLayout>
  194. </LinearLayout>
  195. <LinearLayout
  196. android:layout_width="0dp"
  197. android:layout_height="wrap_content"
  198. android:layout_weight="1"
  199. android:orientation="horizontal">
  200. <TextView
  201. android:layout_width="wrap_content"
  202. android:layout_height="wrap_content"
  203. android:layout_gravity="start"
  204. android:text="@string/verify_name"
  205. android:textSize="@dimen/text_size_medium" />
  206. <TextView
  207. android:id="@+id/finance_reviewer"
  208. android:layout_width="match_parent"
  209. android:layout_height="wrap_content"
  210. android:gravity="end"
  211. android:text="@string/no_info"
  212. android:textSize="@dimen/text_size_medium" />
  213. </LinearLayout>
  214. </LinearLayout>
  215. <View
  216. android:layout_width="match_parent"
  217. android:layout_height="@dimen/line"
  218. android:layout_marginTop="@dimen/common_padding_huge"
  219. android:layout_marginBottom="@dimen/common_padding"
  220. android:background="@color/line_color" />
  221. <LinearLayout
  222. android:layout_width="match_parent"
  223. android:layout_height="wrap_content"
  224. android:layout_marginTop="@dimen/common_padding"
  225. android:baselineAligned="false"
  226. android:orientation="horizontal">
  227. <LinearLayout
  228. android:layout_width="0dp"
  229. android:layout_height="wrap_content"
  230. android:layout_weight="1"
  231. android:orientation="horizontal">
  232. <TextView
  233. android:layout_width="wrap_content"
  234. android:layout_height="wrap_content"
  235. android:layout_gravity="start"
  236. android:text="@string/general_manager_verify"
  237. android:textSize="@dimen/text_size_medium" />
  238. <LinearLayout
  239. android:layout_width="match_parent"
  240. android:layout_height="wrap_content"
  241. android:gravity="end|center"
  242. tools:ignore="UseCompoundDrawables">
  243. <TextView
  244. android:id="@+id/general_status"
  245. android:layout_width="wrap_content"
  246. android:layout_height="wrap_content"
  247. android:text="@string/verify_passed"
  248. android:textColor="@color/passed"
  249. android:textSize="@dimen/text_size_medium" />
  250. <ImageView
  251. android:id="@+id/general_icon"
  252. android:layout_width="@dimen/common_padding_huge"
  253. android:layout_height="@dimen/common_padding_huge"
  254. android:layout_marginStart="@dimen/common_padding_small"
  255. android:layout_marginEnd="@dimen/common_padding"
  256. android:gravity="center_vertical"
  257. android:src="@mipmap/icon_passed"
  258. tools:ignore="ContentDescription" />
  259. </LinearLayout>
  260. </LinearLayout>
  261. <LinearLayout
  262. android:layout_width="0dp"
  263. android:layout_height="wrap_content"
  264. android:layout_weight="1"
  265. android:orientation="horizontal">
  266. <TextView
  267. android:layout_width="wrap_content"
  268. android:layout_height="wrap_content"
  269. android:layout_gravity="start"
  270. android:text="@string/verify_name"
  271. android:textSize="@dimen/text_size_medium" />
  272. <TextView
  273. android:id="@+id/general_reviewer"
  274. android:layout_width="match_parent"
  275. android:layout_height="wrap_content"
  276. android:gravity="end"
  277. android:text="@string/no_info"
  278. android:textSize="@dimen/text_size_medium" />
  279. </LinearLayout>
  280. </LinearLayout>
  281. <View
  282. android:layout_width="match_parent"
  283. android:layout_height="@dimen/line"
  284. android:layout_marginTop="@dimen/common_padding_huge"
  285. android:layout_marginBottom="@dimen/common_padding"
  286. android:background="@color/line_color" />
  287. <LinearLayout
  288. android:layout_width="match_parent"
  289. android:layout_height="wrap_content"
  290. android:layout_marginTop="@dimen/common_padding"
  291. android:layout_marginBottom="@dimen/common_padding"
  292. android:orientation="horizontal">
  293. <TextView
  294. android:layout_width="wrap_content"
  295. android:layout_height="match_parent"
  296. android:gravity="center"
  297. android:text="@string/is_pay"
  298. android:textSize="@dimen/text_size_medium" />
  299. <LinearLayout
  300. android:layout_width="match_parent"
  301. android:layout_height="match_parent"
  302. android:gravity="end|center"
  303. tools:ignore="UseCompoundDrawables">
  304. <TextView
  305. android:id="@+id/is_pay"
  306. android:layout_width="wrap_content"
  307. android:layout_height="wrap_content"
  308. android:text="@string/paid"
  309. android:textColor="@color/passed"
  310. android:textSize="@dimen/text_size_medium" />
  311. <ImageView
  312. android:id="@+id/is_pay_icon"
  313. android:layout_width="@dimen/common_padding_huge"
  314. android:layout_height="@dimen/common_padding_huge"
  315. android:layout_gravity="center"
  316. android:layout_marginStart="@dimen/common_padding_small"
  317. android:src="@mipmap/icon_passed"
  318. tools:ignore="ContentDescription" />
  319. </LinearLayout>
  320. </LinearLayout>
  321. <LinearLayout
  322. android:id="@+id/daily_payment_approval"
  323. android:layout_width="match_parent"
  324. android:layout_height="wrap_content"
  325. android:layout_marginTop="@dimen/common_padding"
  326. android:layout_marginBottom="@dimen/common_padding"
  327. android:orientation="horizontal"
  328. android:visibility="gone">
  329. <TextView
  330. android:id="@+id/disapproval"
  331. android:layout_width="0dp"
  332. android:layout_height="@dimen/button_height"
  333. android:layout_marginEnd="@dimen/common_padding_huge"
  334. android:layout_weight="1"
  335. android:background="@drawable/shape_corner_solid_blue"
  336. android:gravity="center"
  337. android:text="@string/verify_reject"
  338. android:textColor="@color/white"
  339. android:textSize="@dimen/text_size_medium"
  340. android:textStyle="bold" />
  341. <TextView
  342. android:id="@+id/approval"
  343. android:layout_width="0dp"
  344. android:layout_height="@dimen/button_height"
  345. android:layout_weight="1"
  346. android:background="@drawable/shape_corner_solid_blue"
  347. android:gravity="center"
  348. android:text="@string/verify_pass"
  349. android:textColor="@color/white"
  350. android:textSize="@dimen/text_size_medium"
  351. android:textStyle="bold" />
  352. </LinearLayout>
  353. <TextView
  354. android:id="@+id/verified"
  355. android:layout_width="match_parent"
  356. android:layout_height="@dimen/button_height"
  357. android:layout_marginTop="@dimen/common_padding"
  358. android:layout_marginBottom="@dimen/common_padding"
  359. android:background="@drawable/shape_corner_reset_button"
  360. android:gravity="center"
  361. android:text="@string/verify_passed"
  362. android:textColor="@color/white"
  363. android:textSize="@dimen/text_size_medium"
  364. android:textStyle="bold"
  365. android:visibility="gone" />
  366. </LinearLayout>
  367. </LinearLayout>