layout_title.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical">
  8. <LinearLayout
  9. android:layout_width="match_parent"
  10. android:layout_height="@dimen/title_height"
  11. android:background="@color/title_background_color"
  12. android:orientation="vertical"
  13. app:layout_constraintTop_toTopOf="parent">
  14. <RelativeLayout
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_marginTop="@dimen/title_margin_top"
  18. tools:ignore="UselessParent">
  19. <LinearLayout
  20. android:id="@+id/back_button"
  21. android:layout_width="wrap_content"
  22. android:layout_height="30dp"
  23. android:layout_centerVertical="true"
  24. android:layout_marginStart="@dimen/common_padding_large"
  25. android:gravity="center"
  26. android:orientation="horizontal"
  27. tools:ignore="UseCompoundDrawables">
  28. <ImageView
  29. android:layout_width="@dimen/common_padding_huge"
  30. android:layout_height="@dimen/common_padding_huge"
  31. android:src="@mipmap/icon_back"
  32. tools:ignore="ContentDescription" />
  33. <TextView
  34. android:layout_width="wrap_content"
  35. android:layout_height="match_parent"
  36. android:layout_marginStart="@dimen/common_padding_small"
  37. android:gravity="center"
  38. android:text="@string/back"
  39. android:textColor="@color/white"
  40. android:textSize="@dimen/text_size_medium" />
  41. </LinearLayout>
  42. <TextView
  43. android:id="@+id/title_text"
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_centerInParent="true"
  47. android:textColor="@color/white"
  48. android:textSize="@dimen/text_size_large" />
  49. <TextView
  50. android:id="@+id/right_text_field"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:layout_alignParentEnd="true"
  54. android:layout_centerVertical="true"
  55. android:layout_marginEnd="@dimen/common_padding_huge"
  56. android:text="@string/business_card_scan"
  57. android:textColor="@color/white"
  58. android:textSize="@dimen/text_size_medium"
  59. android:visibility="gone" />
  60. <ImageView
  61. android:id="@+id/add_button"
  62. android:layout_width="@dimen/common_padding_huge"
  63. android:layout_height="@dimen/common_padding_huge"
  64. android:layout_alignParentEnd="true"
  65. android:layout_centerVertical="true"
  66. android:layout_marginEnd="@dimen/common_padding_huge"
  67. android:src="@mipmap/icon_add"
  68. android:visibility="gone"
  69. tools:ignore="ContentDescription" />
  70. </RelativeLayout>
  71. </LinearLayout>
  72. <LinearLayout
  73. android:id="@+id/search_view"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:background="@color/background_color"
  77. android:orientation="vertical"
  78. android:visibility="gone"
  79. app:layout_constraintTop_toBottomOf="@id/add_itinerary_title">
  80. <LinearLayout
  81. android:layout_width="match_parent"
  82. android:layout_height="40dp"
  83. android:layout_marginStart="@dimen/common_padding"
  84. android:layout_marginTop="@dimen/common_padding"
  85. android:layout_marginEnd="@dimen/common_padding"
  86. android:layout_marginBottom="@dimen/common_padding"
  87. android:background="@drawable/shape_corner_background_search"
  88. android:orientation="vertical">
  89. <com.pan_american.android.util.SearchView
  90. android:id="@+id/search_text"
  91. android:layout_width="match_parent"
  92. android:layout_height="match_parent"
  93. android:layout_marginStart="@dimen/common_padding"
  94. android:layout_marginEnd="@dimen/common_padding"
  95. android:background="@color/white"
  96. android:imeOptions="actionSearch"
  97. android:singleLine="true"
  98. android:textColor="@color/text_color"
  99. android:textSize="@dimen/text_size_medium" />
  100. </LinearLayout>
  101. </LinearLayout>
  102. </LinearLayout>