activity_add_hotel_resource.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:background="@color/white"
  6. android:orientation="vertical">
  7. <include
  8. layout="@layout/layout_title"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content" />
  11. <ScrollView
  12. android:id="@+id/parent_scroll"
  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_heavy"
  22. android:layout_marginTop="@dimen/common_padding"
  23. android:layout_marginEnd="@dimen/common_padding_heavy"
  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:id="@+id/hotel_name_title"
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:layout_gravity="center"
  35. android:text="@string/hotel_name"
  36. android:textSize="@dimen/text_size_medium" />
  37. <EditText
  38. android:id="@+id/hotel_name"
  39. android:layout_width="0dp"
  40. android:layout_height="wrap_content"
  41. android:layout_marginStart="@dimen/common_padding"
  42. android:layout_weight="1"
  43. android:background="@color/white"
  44. android:gravity="end"
  45. android:hint="@string/please_input"
  46. android:importantForAutofill="no"
  47. android:inputType="text"
  48. android:textColor="@color/text_color"
  49. android:textColorHint="@color/hint_text_color"
  50. android:textSize="@dimen/text_size_medium" />
  51. </LinearLayout>
  52. <View
  53. android:layout_width="match_parent"
  54. android:layout_height="@dimen/line"
  55. android:layout_marginTop="@dimen/common_padding_huge"
  56. android:layout_marginBottom="@dimen/common_padding"
  57. android:background="@color/line_color" />
  58. <LinearLayout
  59. android:layout_width="match_parent"
  60. android:layout_height="wrap_content"
  61. android:layout_marginTop="@dimen/common_padding"
  62. android:orientation="horizontal">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_gravity="center"
  67. android:text="@string/located_city"
  68. android:textSize="@dimen/text_size_medium" />
  69. <EditText
  70. android:id="@+id/hotel_location"
  71. android:layout_width="0dp"
  72. android:layout_height="wrap_content"
  73. android:layout_marginStart="@dimen/common_padding"
  74. android:layout_weight="1"
  75. android:background="@color/white"
  76. android:gravity="end"
  77. android:hint="@string/please_input"
  78. android:importantForAutofill="no"
  79. android:inputType="text"
  80. android:singleLine="true"
  81. android:textColor="@color/text_color"
  82. android:textColorHint="@color/hint_text_color"
  83. android:textSize="@dimen/text_size_medium" />
  84. </LinearLayout>
  85. <View
  86. android:layout_width="match_parent"
  87. android:layout_height="@dimen/line"
  88. android:layout_marginTop="@dimen/common_padding_huge"
  89. android:layout_marginBottom="@dimen/common_padding"
  90. android:background="@color/line_color" />
  91. <LinearLayout
  92. android:layout_width="match_parent"
  93. android:layout_height="wrap_content"
  94. android:layout_marginTop="@dimen/common_padding"
  95. android:orientation="vertical">
  96. <TextView
  97. android:id="@+id/hotel_address_title"
  98. android:layout_width="wrap_content"
  99. android:layout_height="wrap_content"
  100. android:layout_marginBottom="@dimen/common_padding"
  101. android:text="@string/hotel_location"
  102. android:textSize="@dimen/text_size_medium" />
  103. <com.pan_american.android.util.ScrollEditText
  104. android:id="@+id/hotel_address"
  105. android:layout_width="match_parent"
  106. android:layout_height="100dp"
  107. android:textSize="@dimen/text_size_medium" />
  108. </LinearLayout>
  109. <View
  110. android:layout_width="match_parent"
  111. android:layout_height="@dimen/line"
  112. android:layout_marginTop="@dimen/common_padding_huge"
  113. android:layout_marginBottom="@dimen/common_padding"
  114. android:background="@color/line_color" />
  115. <LinearLayout
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_marginTop="@dimen/common_padding"
  119. android:orientation="horizontal">
  120. <TextView
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_gravity="center"
  124. android:text="@string/hotel_tel"
  125. android:textSize="@dimen/text_size_medium" />
  126. <EditText
  127. android:id="@+id/hotel_phone"
  128. android:layout_width="0dp"
  129. android:layout_height="wrap_content"
  130. android:layout_marginStart="@dimen/common_padding"
  131. android:layout_weight="1"
  132. android:background="@color/white"
  133. android:gravity="end"
  134. android:hint="@string/please_input"
  135. android:importantForAutofill="no"
  136. android:inputType="phone"
  137. android:singleLine="true"
  138. android:textColor="@color/text_color"
  139. android:textColorHint="@color/hint_text_color"
  140. android:textSize="@dimen/text_size_medium" />
  141. </LinearLayout>
  142. <View
  143. android:layout_width="match_parent"
  144. android:layout_height="@dimen/line"
  145. android:layout_marginTop="@dimen/common_padding_huge"
  146. android:layout_marginBottom="@dimen/common_padding"
  147. android:background="@color/line_color" />
  148. <LinearLayout
  149. android:layout_width="match_parent"
  150. android:layout_height="wrap_content"
  151. android:layout_marginTop="@dimen/common_padding"
  152. android:orientation="horizontal">
  153. <TextView
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:layout_gravity="center"
  157. android:text="@string/fax_number"
  158. android:textSize="@dimen/text_size_medium" />
  159. <EditText
  160. android:id="@+id/hotel_fax"
  161. android:layout_width="0dp"
  162. android:layout_height="wrap_content"
  163. android:layout_marginStart="@dimen/common_padding"
  164. android:layout_weight="1"
  165. android:background="@color/white"
  166. android:gravity="end"
  167. android:hint="@string/please_input"
  168. android:importantForAutofill="no"
  169. android:inputType="text"
  170. android:singleLine="true"
  171. android:textColor="@color/text_color"
  172. android:textColorHint="@color/hint_text_color"
  173. android:textSize="@dimen/text_size_medium" />
  174. </LinearLayout>
  175. <View
  176. android:layout_width="match_parent"
  177. android:layout_height="@dimen/line"
  178. android:layout_marginTop="@dimen/common_padding_huge"
  179. android:layout_marginBottom="@dimen/common_padding"
  180. android:background="@color/line_color" />
  181. <LinearLayout
  182. android:layout_width="match_parent"
  183. android:layout_height="wrap_content"
  184. android:layout_marginTop="@dimen/common_padding"
  185. android:orientation="horizontal">
  186. <TextView
  187. android:id="@+id/hotel_level_title"
  188. android:layout_width="wrap_content"
  189. android:layout_height="wrap_content"
  190. android:layout_gravity="center"
  191. android:text="@string/hotel_level"
  192. android:textSize="@dimen/text_size_medium" />
  193. <TextView
  194. android:id="@+id/hotel_level"
  195. android:layout_width="0dp"
  196. android:layout_height="wrap_content"
  197. android:layout_marginStart="@dimen/common_padding"
  198. android:layout_weight="1"
  199. android:background="@color/white"
  200. android:gravity="end"
  201. android:hint="@string/please_select"
  202. android:singleLine="true"
  203. android:textColorHint="@color/hint_text_color"
  204. android:textSize="@dimen/text_size_medium" />
  205. </LinearLayout>
  206. <View
  207. android:layout_width="match_parent"
  208. android:layout_height="@dimen/line"
  209. android:layout_marginTop="@dimen/common_padding_huge"
  210. android:layout_marginBottom="@dimen/common_padding"
  211. android:background="@color/line_color" />
  212. <LinearLayout
  213. android:layout_width="match_parent"
  214. android:layout_height="wrap_content"
  215. android:layout_marginTop="@dimen/common_padding"
  216. android:orientation="horizontal">
  217. <TextView
  218. android:layout_width="wrap_content"
  219. android:layout_height="wrap_content"
  220. android:layout_gravity="center"
  221. android:text="@string/contacts"
  222. android:textSize="@dimen/text_size_medium" />
  223. <EditText
  224. android:id="@+id/contacts_name"
  225. android:layout_width="0dp"
  226. android:layout_height="wrap_content"
  227. android:layout_marginStart="@dimen/common_padding"
  228. android:layout_weight="1"
  229. android:background="@color/white"
  230. android:gravity="end"
  231. android:hint="@string/please_input"
  232. android:importantForAutofill="no"
  233. android:inputType="text"
  234. android:singleLine="true"
  235. android:textColor="@color/text_color"
  236. android:textColorHint="@color/hint_text_color"
  237. android:textSize="@dimen/text_size_medium" />
  238. </LinearLayout>
  239. <View
  240. android:layout_width="match_parent"
  241. android:layout_height="@dimen/line"
  242. android:layout_marginTop="@dimen/common_padding_huge"
  243. android:layout_marginBottom="@dimen/common_padding"
  244. android:background="@color/line_color" />
  245. <LinearLayout
  246. android:layout_width="match_parent"
  247. android:layout_height="wrap_content"
  248. android:layout_marginTop="@dimen/common_padding"
  249. android:orientation="horizontal">
  250. <TextView
  251. android:layout_width="wrap_content"
  252. android:layout_height="wrap_content"
  253. android:layout_gravity="center"
  254. android:text="@string/contacts_phone"
  255. android:textSize="@dimen/text_size_medium" />
  256. <EditText
  257. android:id="@+id/contacts_phone"
  258. android:layout_width="0dp"
  259. android:layout_height="wrap_content"
  260. android:layout_marginStart="@dimen/common_padding"
  261. android:layout_weight="1"
  262. android:background="@color/white"
  263. android:gravity="end"
  264. android:hint="@string/please_input"
  265. android:inputType="phone"
  266. android:singleLine="true"
  267. android:textColor="@color/text_color"
  268. android:textColorHint="@color/hint_text_color"
  269. android:textSize="@dimen/text_size_medium" />
  270. </LinearLayout>
  271. <View
  272. android:layout_width="match_parent"
  273. android:layout_height="@dimen/line"
  274. android:layout_marginTop="@dimen/common_padding_huge"
  275. android:layout_marginBottom="@dimen/common_padding"
  276. android:background="@color/line_color" />
  277. <LinearLayout
  278. android:layout_width="match_parent"
  279. android:layout_height="wrap_content"
  280. android:layout_marginTop="@dimen/common_padding"
  281. android:layout_marginBottom="@dimen/common_padding"
  282. android:orientation="vertical">
  283. <TextView
  284. android:layout_width="wrap_content"
  285. android:layout_height="wrap_content"
  286. android:layout_marginBottom="@dimen/common_padding"
  287. android:text="@string/other_info"
  288. android:textSize="@dimen/text_size_medium" />
  289. <com.pan_american.android.util.ScrollEditText
  290. android:id="@+id/other_info"
  291. android:layout_width="match_parent"
  292. android:layout_height="120dp" />
  293. </LinearLayout>
  294. <LinearLayout
  295. android:layout_width="match_parent"
  296. android:layout_height="@dimen/button_height"
  297. android:layout_marginTop="@dimen/common_padding_huge"
  298. android:layout_marginBottom="50dp"
  299. android:background="@drawable/shape_corner_solid_blue"
  300. android:orientation="horizontal">
  301. <com.pan_american.android.util.CommitButton
  302. android:id="@+id/commit"
  303. android:layout_width="match_parent"
  304. android:layout_height="match_parent" />
  305. <ProgressBar
  306. android:id="@+id/update_loading"
  307. android:layout_width="match_parent"
  308. android:layout_height="match_parent"
  309. android:layout_margin="@dimen/common_padding_small"
  310. android:indeterminateTint="@color/white"
  311. android:visibility="gone" />
  312. </LinearLayout>
  313. </LinearLayout>
  314. </ScrollView>
  315. </LinearLayout>