activity_add_daily_payment.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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="match_parent"
  6. android:background="@color/background_color"
  7. android:orientation="vertical">
  8. <include
  9. layout="@layout/layout_title"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content" />
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:background="@color/white"
  16. android:orientation="vertical">
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:layout_marginStart="25dp"
  21. android:layout_marginTop="@dimen/common_padding_large"
  22. android:layout_marginEnd="25dp"
  23. android:baselineAligned="false"
  24. android:orientation="horizontal">
  25. <LinearLayout
  26. android:layout_width="0dp"
  27. android:layout_height="wrap_content"
  28. android:layout_weight="1"
  29. android:orientation="horizontal">
  30. <TextView
  31. android:layout_width="wrap_content"
  32. android:layout_height="wrap_content"
  33. android:layout_gravity="center"
  34. android:text="@string/payment_identification"
  35. android:textSize="@dimen/text_size_medium" />
  36. <TextView
  37. android:id="@+id/payment_identification"
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginStart="@dimen/common_padding"
  41. android:background="@color/white"
  42. android:gravity="end"
  43. android:hint="@string/please_select"
  44. android:singleLine="true"
  45. android:textColor="@color/text_color"
  46. android:textColorHint="@color/hint_text_color"
  47. android:textSize="@dimen/text_size_medium" />
  48. </LinearLayout>
  49. <LinearLayout
  50. android:layout_width="0dp"
  51. android:layout_height="wrap_content"
  52. android:layout_marginStart="@dimen/common_padding_large"
  53. android:layout_weight="1"
  54. android:orientation="horizontal">
  55. <TextView
  56. android:layout_width="wrap_content"
  57. android:layout_height="wrap_content"
  58. android:layout_gravity="center"
  59. android:text="@string/transfer_identification"
  60. android:textSize="@dimen/text_size_medium" />
  61. <TextView
  62. android:id="@+id/transfer_identification"
  63. android:layout_width="match_parent"
  64. android:layout_height="wrap_content"
  65. android:layout_marginStart="@dimen/common_padding"
  66. android:background="@color/white"
  67. android:gravity="end"
  68. android:hint="@string/please_select"
  69. android:singleLine="true"
  70. android:textColor="@color/text_color"
  71. android:textColorHint="@color/hint_text_color"
  72. android:textSize="@dimen/text_size_medium" />
  73. </LinearLayout>
  74. </LinearLayout>
  75. <View
  76. android:layout_width="match_parent"
  77. android:layout_height="1dp"
  78. android:layout_marginTop="@dimen/common_padding_large"
  79. android:layout_marginBottom="@dimen/common_padding"
  80. android:background="@color/line_color" />
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:layout_marginStart="25dp"
  85. android:layout_marginTop="@dimen/common_padding"
  86. android:layout_marginEnd="25dp"
  87. android:orientation="horizontal">
  88. <TextView
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:layout_gravity="center"
  92. android:text="@string/application_company"
  93. android:textSize="@dimen/text_size_medium" />
  94. <TextView
  95. android:id="@+id/application_company"
  96. android:layout_width="0dp"
  97. android:layout_height="wrap_content"
  98. android:layout_marginStart="@dimen/common_padding"
  99. android:layout_weight="1"
  100. android:background="@color/white"
  101. android:gravity="end"
  102. android:hint="@string/please_select"
  103. android:singleLine="true"
  104. android:textColor="@color/text_color"
  105. android:textColorHint="@color/hint_text_color"
  106. android:textSize="@dimen/text_size_medium" />
  107. </LinearLayout>
  108. <View
  109. android:layout_width="match_parent"
  110. android:layout_height="1dp"
  111. android:layout_marginTop="@dimen/common_padding_large"
  112. android:layout_marginBottom="@dimen/common_padding"
  113. android:background="@color/line_color" />
  114. <LinearLayout
  115. android:layout_width="match_parent"
  116. android:layout_height="wrap_content"
  117. android:layout_marginStart="25dp"
  118. android:layout_marginTop="@dimen/common_padding"
  119. android:layout_marginEnd="25dp"
  120. android:orientation="horizontal">
  121. <TextView
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:layout_gravity="center"
  125. android:text="@string/payment_type"
  126. android:textSize="@dimen/text_size_medium" />
  127. <TextView
  128. android:id="@+id/payment_type"
  129. android:layout_width="0dp"
  130. android:layout_height="wrap_content"
  131. android:layout_marginStart="@dimen/common_padding"
  132. android:layout_weight="1"
  133. android:background="@color/white"
  134. android:gravity="end"
  135. android:hint="@string/please_select"
  136. android:singleLine="true"
  137. android:textColor="@color/text_color"
  138. android:textColorHint="@color/hint_text_color"
  139. android:textSize="@dimen/text_size_medium" />
  140. </LinearLayout>
  141. <View
  142. android:layout_width="match_parent"
  143. android:layout_height="1dp"
  144. android:layout_marginTop="@dimen/common_padding_large"
  145. android:layout_marginBottom="@dimen/common_padding"
  146. android:background="@color/line_color" />
  147. <LinearLayout
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:layout_marginStart="25dp"
  151. android:layout_marginTop="@dimen/common_padding"
  152. android:layout_marginEnd="25dp"
  153. android:orientation="horizontal">
  154. <TextView
  155. android:layout_width="wrap_content"
  156. android:layout_height="wrap_content"
  157. android:layout_gravity="center"
  158. android:text="@string/payment_name"
  159. android:textSize="@dimen/text_size_medium" />
  160. <TextView
  161. android:id="@+id/payment_name"
  162. android:layout_width="0dp"
  163. android:layout_height="wrap_content"
  164. android:layout_marginStart="@dimen/common_padding"
  165. android:layout_weight="1"
  166. android:background="@color/white"
  167. android:gravity="end"
  168. android:hint="@string/please_select"
  169. android:singleLine="true"
  170. android:textColor="@color/text_color"
  171. android:textColorHint="@color/hint_text_color"
  172. android:textSize="@dimen/text_size_medium" />
  173. </LinearLayout>
  174. <View
  175. android:layout_width="match_parent"
  176. android:layout_height="1dp"
  177. android:layout_marginTop="@dimen/common_padding_large"
  178. android:layout_marginBottom="@dimen/common_padding"
  179. android:background="@color/line_color" />
  180. <LinearLayout
  181. android:layout_width="match_parent"
  182. android:layout_height="wrap_content"
  183. android:layout_marginStart="25dp"
  184. android:layout_marginTop="@dimen/common_padding"
  185. android:layout_marginEnd="25dp"
  186. android:orientation="vertical">
  187. <TextView
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content"
  190. android:layout_gravity="start"
  191. android:text="@string/payment_notes"
  192. android:textSize="@dimen/text_size_medium" />
  193. <com.pan_american.android.util.ScrollEditText
  194. android:id="@+id/payment_notes"
  195. android:layout_width="match_parent"
  196. android:layout_height="120dp"
  197. android:layout_marginTop="@dimen/common_padding"
  198. android:background="@drawable/shape_large_edit_text_background"
  199. android:scrollbars="none" />
  200. </LinearLayout>
  201. <View
  202. android:layout_width="match_parent"
  203. android:layout_height="1dp"
  204. android:layout_marginTop="@dimen/common_padding_large"
  205. android:layout_marginBottom="@dimen/common_padding"
  206. android:background="@color/line_color" />
  207. </LinearLayout>
  208. <LinearLayout
  209. android:layout_width="match_parent"
  210. android:layout_height="match_parent"
  211. android:layout_marginTop="@dimen/common_padding_large"
  212. android:background="@color/white"
  213. android:orientation="vertical">
  214. <LinearLayout
  215. android:layout_width="match_parent"
  216. android:layout_height="wrap_content"
  217. android:layout_marginStart="25dp"
  218. android:layout_marginTop="@dimen/common_padding"
  219. android:layout_marginEnd="25dp"
  220. android:orientation="horizontal">
  221. <TextView
  222. android:layout_width="0dp"
  223. android:layout_height="wrap_content"
  224. android:layout_gravity="center"
  225. android:layout_weight="1"
  226. android:text="@string/add_payment_item"
  227. android:textSize="@dimen/text_size_large"
  228. android:textStyle="bold" />
  229. <ImageView
  230. android:id="@+id/add_payment_item"
  231. android:layout_width="@dimen/common_padding_heavy"
  232. android:layout_height="@dimen/common_padding_heavy"
  233. android:layout_gravity="center"
  234. android:src="@mipmap/icon_add_members"
  235. tools:ignore="ContentDescription" />
  236. </LinearLayout>
  237. <View
  238. android:layout_width="match_parent"
  239. android:layout_height="1dp"
  240. android:layout_marginTop="@dimen/common_padding"
  241. android:layout_marginBottom="@dimen/common_padding"
  242. android:background="@color/line_color" />
  243. <androidx.recyclerview.widget.RecyclerView
  244. android:id="@+id/payment_item_list"
  245. android:layout_width="match_parent"
  246. android:layout_height="0dp"
  247. android:layout_marginStart="25dp"
  248. android:layout_marginEnd="25dp"
  249. android:layout_weight="1" />
  250. <LinearLayout
  251. android:layout_width="match_parent"
  252. android:layout_height="wrap_content"
  253. android:layout_marginTop="@dimen/common_padding"
  254. android:background="@color/background_color"
  255. android:baselineAligned="false"
  256. android:orientation="horizontal">
  257. <LinearLayout
  258. android:layout_width="0dp"
  259. android:layout_height="wrap_content"
  260. android:layout_gravity="center"
  261. android:layout_weight="3"
  262. android:orientation="horizontal">
  263. <TextView
  264. android:layout_width="wrap_content"
  265. android:layout_height="wrap_content"
  266. android:layout_gravity="center"
  267. android:layout_marginStart="@dimen/common_padding"
  268. android:text="@string/payment_total"
  269. android:textSize="@dimen/text_size_large" />
  270. <TextView
  271. android:id="@+id/payment_total"
  272. android:layout_width="match_parent"
  273. android:layout_height="wrap_content"
  274. android:layout_gravity="center"
  275. android:layout_marginStart="@dimen/common_padding"
  276. android:maxLines="1"
  277. android:textSize="@dimen/text_size_large"
  278. android:textStyle="bold" />
  279. </LinearLayout>
  280. <LinearLayout
  281. android:layout_width="0dp"
  282. android:layout_height="@dimen/button_height"
  283. android:layout_margin="@dimen/common_padding"
  284. android:layout_weight="2"
  285. android:background="@drawable/shape_corner_solid_blue"
  286. android:orientation="vertical">
  287. <com.pan_american.android.util.CommitButton
  288. android:id="@+id/commit"
  289. android:layout_width="match_parent"
  290. android:layout_height="match_parent"/>
  291. <ProgressBar
  292. android:id="@+id/update_loading"
  293. android:layout_width="match_parent"
  294. android:layout_height="match_parent"
  295. android:layout_margin="@dimen/common_padding_small"
  296. android:indeterminateTint="@color/white"
  297. android:visibility="gone" />
  298. </LinearLayout>
  299. </LinearLayout>
  300. </LinearLayout>
  301. </LinearLayout>