activity_add_itinerary.xml 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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. tools:context=".ui.efficiency_tools.itinerary.AddItineraryActivity">
  9. <include
  10. layout="@layout/layout_title"
  11. android:layout_width="match_parent"
  12. android:layout_height="wrap_content" />
  13. <LinearLayout
  14. android:layout_width="match_parent"
  15. android:layout_height="60dp"
  16. android:background="@color/white"
  17. android:gravity="center_vertical"
  18. android:orientation="vertical">
  19. <EditText
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:layout_marginStart="@dimen/common_padding_huge"
  23. android:layout_marginEnd="@dimen/common_padding_huge"
  24. android:background="@null"
  25. android:hint="@string/itinerary_title_input_hint"
  26. android:importantForAutofill="no"
  27. android:inputType="text"
  28. android:textColorHint="@color/hint_text_color"
  29. android:textSize="@dimen/text_size_large" />
  30. </LinearLayout>
  31. <LinearLayout
  32. android:layout_width="match_parent"
  33. android:layout_height="wrap_content"
  34. android:layout_marginTop="@dimen/common_padding"
  35. android:background="@color/white"
  36. android:orientation="vertical">
  37. <LinearLayout
  38. android:layout_width="match_parent"
  39. android:layout_height="wrap_content"
  40. android:layout_marginStart="@dimen/common_padding_huge"
  41. android:layout_marginTop="@dimen/common_padding"
  42. android:layout_marginEnd="@dimen/common_padding_huge">
  43. <TextView
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:gravity="center"
  47. android:text="@string/start_time"
  48. android:textSize="@dimen/text_size_medium"
  49. android:textStyle="bold" />
  50. <TextView
  51. android:layout_width="0dp"
  52. android:layout_height="wrap_content"
  53. android:layout_weight="1"
  54. android:gravity="end"
  55. android:hint="@string/please_select"
  56. android:textColorHint="@color/hint_text_color"
  57. android:textSize="@dimen/text_size_medium" />
  58. </LinearLayout>
  59. <View
  60. android:layout_width="match_parent"
  61. android:layout_height="@dimen/line"
  62. android:layout_marginStart="@dimen/common_padding_huge"
  63. android:layout_marginTop="@dimen/common_padding"
  64. android:layout_marginEnd="@dimen/common_padding_huge"
  65. android:background="@color/background_color" />
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_marginStart="@dimen/common_padding_huge"
  70. android:layout_marginTop="@dimen/common_padding"
  71. android:layout_marginEnd="@dimen/common_padding_huge">
  72. <TextView
  73. android:layout_width="wrap_content"
  74. android:layout_height="wrap_content"
  75. android:text="@string/duration"
  76. android:textSize="@dimen/text_size_medium"
  77. android:textStyle="bold" />
  78. <TextView
  79. android:layout_width="0dp"
  80. android:layout_height="wrap_content"
  81. android:layout_weight="1"
  82. android:gravity="end"
  83. android:text="@string/duration_select_hint"
  84. android:textSize="@dimen/text_size_medium" />
  85. </LinearLayout>
  86. <View
  87. android:layout_width="match_parent"
  88. android:layout_height="@dimen/line"
  89. android:layout_marginStart="@dimen/common_padding_huge"
  90. android:layout_marginTop="@dimen/common_padding"
  91. android:layout_marginEnd="@dimen/common_padding_huge"
  92. android:background="@color/background_color" />
  93. <LinearLayout
  94. android:layout_width="match_parent"
  95. android:layout_height="wrap_content"
  96. android:layout_marginStart="@dimen/common_padding_huge"
  97. android:layout_marginTop="@dimen/common_padding"
  98. android:layout_marginEnd="@dimen/common_padding_huge"
  99. android:orientation="horizontal">
  100. <TextView
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:text="@string/itinerary_location"
  104. android:textSize="@dimen/text_size_medium"
  105. android:textStyle="bold" />
  106. <EditText
  107. android:layout_width="0dp"
  108. android:layout_height="match_parent"
  109. android:layout_marginStart="@dimen/common_padding"
  110. android:layout_weight="1"
  111. android:background="@color/white"
  112. android:gravity="end"
  113. android:hint="@string/itinerary_add_location"
  114. android:importantForAutofill="no"
  115. android:inputType="text"
  116. android:textColor="@color/hint_text_color"
  117. android:textSize="@dimen/text_size_medium" />
  118. </LinearLayout>
  119. <View
  120. android:layout_width="match_parent"
  121. android:layout_height="@dimen/line"
  122. android:layout_marginStart="@dimen/common_padding_huge"
  123. android:layout_marginTop="@dimen/common_padding"
  124. android:layout_marginEnd="@dimen/common_padding_huge"
  125. android:background="@color/background_color" />
  126. <LinearLayout
  127. android:layout_width="match_parent"
  128. android:layout_height="wrap_content"
  129. android:layout_marginStart="@dimen/common_padding_huge"
  130. android:layout_marginTop="@dimen/common_padding"
  131. android:layout_marginEnd="@dimen/common_padding_huge"
  132. android:orientation="horizontal"
  133. tools:ignore="UseCompoundDrawables">
  134. <TextView
  135. android:layout_width="0dp"
  136. android:layout_height="wrap_content"
  137. android:layout_weight="1"
  138. android:text="@string/itinerary_add_member"
  139. android:textSize="@dimen/text_size_medium"
  140. android:textStyle="bold" />
  141. <ImageView
  142. android:layout_width="@dimen/common_padding_heavy"
  143. android:layout_height="@dimen/common_padding_heavy"
  144. android:src="@mipmap/icon_add_members"
  145. tools:ignore="ContentDescription" />
  146. </LinearLayout>
  147. <View
  148. android:layout_width="match_parent"
  149. android:layout_height="@dimen/line"
  150. android:layout_marginStart="@dimen/common_padding_huge"
  151. android:layout_marginTop="@dimen/common_padding"
  152. android:layout_marginEnd="@dimen/common_padding_huge"
  153. android:background="@color/background_color" />
  154. </LinearLayout>
  155. <LinearLayout
  156. android:layout_width="match_parent"
  157. android:layout_height="0dp"
  158. android:layout_marginTop="@dimen/common_padding"
  159. android:layout_weight="1"
  160. android:background="@color/white"
  161. android:orientation="vertical">
  162. <TextView
  163. android:layout_width="wrap_content"
  164. android:layout_height="wrap_content"
  165. android:layout_marginStart="@dimen/common_padding_huge"
  166. android:layout_marginTop="@dimen/common_padding"
  167. android:layout_marginEnd="@dimen/common_padding_huge"
  168. android:text="@string/itinerary_description"
  169. android:textSize="@dimen/text_size_medium"
  170. android:textStyle="bold" />
  171. <com.pan_american.android.util.ScrollEditText
  172. android:layout_width="match_parent"
  173. android:layout_height="match_parent"
  174. android:layout_marginStart="@dimen/common_padding_huge"
  175. android:layout_marginTop="@dimen/common_padding"
  176. android:layout_marginEnd="@dimen/common_padding_huge"
  177. android:layout_marginBottom="@dimen/common_padding"
  178. android:background="@drawable/shape_large_edit_text_background"
  179. android:scrollbars="none"
  180. android:textSize="@dimen/text_size_medium" />
  181. </LinearLayout>
  182. <LinearLayout
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:background="@color/white"
  186. android:orientation="horizontal">
  187. <TextView
  188. android:id="@+id/login"
  189. android:layout_width="match_parent"
  190. android:layout_height="@dimen/button_height"
  191. android:layout_marginStart="@dimen/common_padding_huge"
  192. android:layout_marginTop="@dimen/common_padding_huge"
  193. android:layout_marginEnd="@dimen/common_padding_huge"
  194. android:layout_marginBottom="50dp"
  195. android:background="@drawable/shape_corner_solid_blue"
  196. android:gravity="center"
  197. android:text="@string/save_itinerary"
  198. android:textColor="@color/white"
  199. android:textSize="@dimen/text_size_large"
  200. android:textStyle="bold" />
  201. </LinearLayout>
  202. </LinearLayout>