activity_add_daily_payment.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344
  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. </LinearLayout>
  199. <View
  200. android:layout_width="match_parent"
  201. android:layout_height="1dp"
  202. android:layout_marginTop="@dimen/common_padding_large"
  203. android:layout_marginBottom="@dimen/common_padding"
  204. android:background="@color/line_color" />
  205. </LinearLayout>
  206. <LinearLayout
  207. android:layout_width="match_parent"
  208. android:layout_height="match_parent"
  209. android:layout_marginTop="@dimen/common_padding_large"
  210. android:background="@color/white"
  211. android:orientation="vertical">
  212. <LinearLayout
  213. android:layout_width="match_parent"
  214. android:layout_height="wrap_content"
  215. android:layout_marginStart="25dp"
  216. android:layout_marginTop="@dimen/common_padding"
  217. android:layout_marginEnd="25dp"
  218. android:orientation="horizontal">
  219. <TextView
  220. android:layout_width="0dp"
  221. android:layout_height="wrap_content"
  222. android:layout_gravity="center"
  223. android:layout_weight="1"
  224. android:text="@string/add_payment_item"
  225. android:textSize="@dimen/text_size_large"
  226. android:textStyle="bold" />
  227. <ImageView
  228. android:id="@+id/add_payment_item"
  229. android:layout_width="@dimen/common_padding_heavy"
  230. android:layout_height="@dimen/common_padding_heavy"
  231. android:layout_gravity="center"
  232. android:src="@mipmap/icon_add_members"
  233. tools:ignore="ContentDescription" />
  234. </LinearLayout>
  235. <View
  236. android:layout_width="match_parent"
  237. android:layout_height="1dp"
  238. android:layout_marginTop="@dimen/common_padding"
  239. android:layout_marginBottom="@dimen/common_padding"
  240. android:background="@color/line_color" />
  241. <androidx.recyclerview.widget.RecyclerView
  242. android:id="@+id/payment_item_list"
  243. android:layout_width="match_parent"
  244. android:layout_height="0dp"
  245. android:layout_marginStart="25dp"
  246. android:layout_marginEnd="25dp"
  247. android:layout_weight="1" />
  248. <LinearLayout
  249. android:layout_width="match_parent"
  250. android:layout_height="wrap_content"
  251. android:layout_marginTop="@dimen/common_padding"
  252. android:background="@color/background_color"
  253. android:baselineAligned="false"
  254. android:orientation="horizontal">
  255. <LinearLayout
  256. android:layout_width="0dp"
  257. android:layout_height="wrap_content"
  258. android:layout_gravity="center"
  259. android:layout_weight="3"
  260. android:orientation="horizontal">
  261. <TextView
  262. android:layout_width="wrap_content"
  263. android:layout_height="wrap_content"
  264. android:layout_gravity="center"
  265. android:layout_marginStart="@dimen/common_padding"
  266. android:text="@string/payment_total"
  267. android:textSize="@dimen/text_size_large" />
  268. <TextView
  269. android:id="@+id/payment_total"
  270. android:layout_width="match_parent"
  271. android:layout_height="wrap_content"
  272. android:layout_gravity="center"
  273. android:layout_marginStart="@dimen/common_padding"
  274. android:maxLines="1"
  275. android:textSize="@dimen/text_size_large"
  276. android:textStyle="bold" />
  277. </LinearLayout>
  278. <LinearLayout
  279. android:layout_width="0dp"
  280. android:layout_height="@dimen/button_height"
  281. android:layout_margin="@dimen/common_padding"
  282. android:layout_weight="2"
  283. android:background="@drawable/shape_corner_solid_blue"
  284. android:orientation="vertical">
  285. <com.pan_american.android.util.CommitButton
  286. android:id="@+id/commit"
  287. android:layout_width="match_parent"
  288. android:layout_height="match_parent"/>
  289. </LinearLayout>
  290. </LinearLayout>
  291. </LinearLayout>
  292. </LinearLayout>