activity_material_application.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:id="@+id/main"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:background="@color/white"
  7. android:orientation="vertical">
  8. <include
  9. layout="@layout/layout_title"
  10. android:layout_width="match_parent"
  11. android:layout_height="wrap_content" />
  12. <ScrollView
  13. android:layout_width="match_parent"
  14. android:layout_height="0dp"
  15. android:layout_marginTop="@dimen/common_padding"
  16. android:layout_weight="1"
  17. android:scrollbars="none">
  18. <LinearLayout
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:layout_marginStart="@dimen/common_padding_large"
  22. android:layout_marginTop="@dimen/common_padding"
  23. android:layout_marginEnd="@dimen/common_padding_large"
  24. android:orientation="vertical">
  25. <LinearLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content"
  28. android:layout_marginTop="@dimen/common_padding"
  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/material_name"
  35. android:textSize="@dimen/text_size_medium" />
  36. <TextView
  37. android:id="@+id/material_name"
  38. android:layout_width="0dp"
  39. android:layout_height="match_parent"
  40. android:layout_marginStart="@dimen/common_padding"
  41. android:layout_weight="1"
  42. android:background="@color/white"
  43. android:gravity="end"
  44. android:singleLine="true"
  45. android:textColor="@color/text_color"
  46. android:textSize="@dimen/text_size_medium" />
  47. </LinearLayout>
  48. <View
  49. android:layout_width="match_parent"
  50. android:layout_height="@dimen/line"
  51. android:layout_marginTop="@dimen/common_padding_huge"
  52. android:layout_marginBottom="@dimen/common_padding"
  53. android:background="@color/line_color" />
  54. <LinearLayout
  55. android:layout_width="match_parent"
  56. android:layout_height="wrap_content"
  57. android:layout_marginTop="@dimen/common_padding"
  58. android:orientation="horizontal">
  59. <TextView
  60. android:layout_width="wrap_content"
  61. android:layout_height="wrap_content"
  62. android:layout_gravity="center"
  63. android:text="@string/material_type"
  64. android:textSize="@dimen/text_size_medium" />
  65. <TextView
  66. android:id="@+id/material_type"
  67. android:layout_width="0dp"
  68. android:layout_height="match_parent"
  69. android:layout_marginStart="@dimen/common_padding"
  70. android:layout_weight="1"
  71. android:background="@color/white"
  72. android:gravity="end"
  73. android:singleLine="true"
  74. android:textColor="@color/text_color"
  75. android:textSize="@dimen/text_size_medium" />
  76. </LinearLayout>
  77. <View
  78. android:layout_width="match_parent"
  79. android:layout_height="@dimen/line"
  80. android:layout_marginTop="@dimen/common_padding_huge"
  81. android:layout_marginBottom="@dimen/common_padding"
  82. android:background="@color/line_color" />
  83. <LinearLayout
  84. android:layout_width="match_parent"
  85. android:layout_height="wrap_content"
  86. android:layout_marginTop="@dimen/common_padding"
  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/material_count"
  93. android:textSize="@dimen/text_size_medium" />
  94. <TextView
  95. android:id="@+id/material_count"
  96. android:layout_width="0dp"
  97. android:layout_height="match_parent"
  98. android:layout_marginStart="@dimen/common_padding"
  99. android:layout_weight="1"
  100. android:background="@color/white"
  101. android:gravity="end"
  102. android:singleLine="true"
  103. android:textColor="@color/text_color"
  104. android:textSize="@dimen/text_size_medium" />
  105. </LinearLayout>
  106. <View
  107. android:layout_width="match_parent"
  108. android:layout_height="@dimen/line"
  109. android:layout_marginTop="@dimen/common_padding_huge"
  110. android:layout_marginBottom="@dimen/common_padding"
  111. android:background="@color/line_color" />
  112. <LinearLayout
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:layout_marginTop="@dimen/common_padding"
  116. android:orientation="horizontal">
  117. <TextView
  118. android:layout_width="wrap_content"
  119. android:layout_height="wrap_content"
  120. android:layout_gravity="center"
  121. android:text="@string/association_group"
  122. android:textSize="@dimen/text_size_medium" />
  123. <TextView
  124. android:id="@+id/association_group"
  125. android:layout_width="0dp"
  126. android:layout_height="wrap_content"
  127. android:layout_marginStart="@dimen/common_padding"
  128. android:layout_weight="1"
  129. android:background="@color/white"
  130. android:gravity="end"
  131. android:hint="@string/please_select"
  132. android:singleLine="true"
  133. android:textColor="@color/text_color"
  134. android:textColorHint="@color/hint_text_color"
  135. android:textSize="@dimen/text_size_medium" />
  136. </LinearLayout>
  137. <View
  138. android:layout_width="match_parent"
  139. android:layout_height="@dimen/line"
  140. android:layout_marginTop="@dimen/common_padding_huge"
  141. android:layout_marginBottom="@dimen/common_padding"
  142. android:background="@color/line_color" />
  143. <LinearLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:layout_marginTop="@dimen/common_padding"
  147. android:orientation="horizontal">
  148. <TextView
  149. android:layout_width="wrap_content"
  150. android:layout_height="wrap_content"
  151. android:layout_gravity="center"
  152. android:text="@string/application_count"
  153. android:textSize="@dimen/text_size_medium" />
  154. <EditText
  155. android:id="@+id/material_application_count"
  156. android:layout_width="0dp"
  157. android:layout_height="wrap_content"
  158. android:layout_marginStart="@dimen/common_padding"
  159. android:layout_weight="1"
  160. android:background="@color/white"
  161. android:gravity="end"
  162. android:hint="@string/please_input"
  163. android:importantForAutofill="no"
  164. android:inputType="numberDecimal"
  165. android:textColor="@color/text_color"
  166. android:textColorHint="@color/hint_text_color"
  167. android:textSize="@dimen/text_size_medium" />
  168. </LinearLayout>
  169. <View
  170. android:layout_width="match_parent"
  171. android:layout_height="@dimen/line"
  172. android:layout_marginTop="@dimen/common_padding_huge"
  173. android:layout_marginBottom="@dimen/common_padding"
  174. android:background="@color/line_color" />
  175. <LinearLayout
  176. android:layout_width="match_parent"
  177. android:layout_height="wrap_content"
  178. android:layout_marginTop="@dimen/common_padding"
  179. android:orientation="vertical">
  180. <TextView
  181. android:layout_width="wrap_content"
  182. android:layout_height="wrap_content"
  183. android:layout_marginBottom="@dimen/common_padding"
  184. android:text="@string/application_reason"
  185. android:textSize="@dimen/text_size_medium" />
  186. <com.pan_american.android.util.ScrollEditText
  187. android:id="@+id/application_reason"
  188. android:layout_width="match_parent"
  189. android:layout_height="100dp"
  190. android:background="@color/white"
  191. android:gravity="end"
  192. android:hint="@string/please_input"
  193. android:textColorHint="@color/hint_text_color"
  194. android:textSize="@dimen/text_size_medium" />
  195. </LinearLayout>
  196. <View
  197. android:layout_width="match_parent"
  198. android:layout_height="@dimen/line"
  199. android:layout_marginTop="@dimen/common_padding_huge"
  200. android:layout_marginBottom="@dimen/common_padding"
  201. android:background="@color/line_color" />
  202. <LinearLayout
  203. android:layout_width="match_parent"
  204. android:layout_height="wrap_content"
  205. android:layout_marginTop="@dimen/common_padding"
  206. android:layout_marginBottom="@dimen/common_padding_huge"
  207. android:orientation="vertical">
  208. <TextView
  209. android:layout_width="wrap_content"
  210. android:layout_height="wrap_content"
  211. android:layout_marginBottom="@dimen/common_padding"
  212. android:text="@string/notes"
  213. android:textSize="@dimen/text_size_medium" />
  214. <com.pan_american.android.util.ScrollEditText
  215. android:id="@+id/remark"
  216. android:layout_width="match_parent"
  217. android:layout_height="100dp"
  218. android:background="@color/white"
  219. android:gravity="end"
  220. android:hint="@string/please_input"
  221. android:textColorHint="@color/hint_text_color"
  222. android:textSize="@dimen/text_size_medium" />
  223. </LinearLayout>
  224. <com.pan_american.android.util.CommitButton
  225. android:id="@+id/commit"
  226. android:layout_width="match_parent"
  227. android:layout_height="@dimen/button_height"
  228. android:layout_marginTop="@dimen/common_padding_huge" />
  229. </LinearLayout>
  230. </ScrollView>
  231. </LinearLayout>