Advertisement
Guest User

Untitled

a guest
Jan 17th, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.54 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.coordinatorlayout.widget.CoordinatorLayout 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:background="@android:color/white"
  8. android:fillViewport="true"
  9. android:fitsSystemWindows="true"
  10. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  11.  
  12.  
  13. <com.google.android.material.appbar.AppBarLayout
  14. android:id="@+id/appbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_alignParentTop="true"
  18. android:background="@color/colorPrimary"
  19. android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
  20. app:elevation="0dp"
  21. app:layout_constraintTop_toTopOf="parent">
  22.  
  23. <androidx.appcompat.widget.Toolbar
  24. android:layout_width="match_parent"
  25. android:layout_height="wrap_content"
  26. app:popupTheme="@style/ThemeOverlay.AppCompat.Light">
  27.  
  28. <androidx.appcompat.widget.AppCompatImageButton
  29. android:id="@+id/back_btn"
  30. android:layout_width="50dp"
  31. android:layout_height="50dp"
  32. android:layout_marginStart="@dimen/text_margin"
  33. android:background="@drawable/search_side"
  34. android:padding="@dimen/text_margin"
  35. android:rotation="180"
  36. android:scaleType="centerInside"
  37. android:src="@drawable/ic_arrow_right"
  38. android:tint="@color/textHeading" />
  39.  
  40. <View
  41. android:layout_width="1dp"
  42. android:layout_height="50dp"
  43. android:background="@color/sepColor" />
  44.  
  45. <androidx.appcompat.widget.AppCompatEditText
  46. android:layout_width="match_parent"
  47. android:layout_height="50dp"
  48. android:layout_marginTop="@dimen/text_margin"
  49. android:layout_marginEnd="@dimen/text_margin"
  50. android:layout_marginBottom="@dimen/text_margin"
  51. android:background="@drawable/search_edt_view"
  52. android:drawableEnd="@drawable/ic_search"
  53. android:ellipsize="end"
  54. android:gravity="center_vertical"
  55. android:hint="@string/search_tour_hint"
  56. android:maxLines="1"
  57. android:padding="@dimen/text_margin"
  58. android:textColor="@color/textPrimary"
  59. android:textColorHint="@color/textHint"
  60. android:textSize="@dimen/text_14"
  61. android:theme="@style/SearchViewTheme" />
  62. </androidx.appcompat.widget.Toolbar>
  63.  
  64.  
  65. </com.google.android.material.appbar.AppBarLayout>
  66.  
  67.  
  68. <androidx.core.widget.NestedScrollView
  69. android:id="@+id/nested"
  70. android:layout_width="match_parent"
  71. android:layout_height="wrap_content"
  72. android:clipToPadding="false"
  73. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  74.  
  75. <LinearLayout
  76. android:layout_width="match_parent"
  77. android:layout_height="match_parent"
  78. android:orientation="vertical"
  79. app:layout_behavior="@string/appbar_scrolling_view_behavior">
  80.  
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:layout_margin="@dimen/text_margin"
  85. android:orientation="horizontal">
  86.  
  87. <androidx.appcompat.widget.AppCompatTextView
  88. android:id="@+id/dates"
  89. android:layout_width="match_parent"
  90. android:layout_height="@dimen/btn_size"
  91. android:layout_marginEnd="@dimen/padding"
  92. android:layout_weight="1"
  93. android:background="@drawable/guide_btn_border"
  94. android:drawableStart="@drawable/ic_date_search"
  95. android:drawablePadding="@dimen/text_margin"
  96. android:drawableTint="@color/textHeading"
  97. android:gravity="center"
  98. android:paddingLeft="@dimen/text_margin"
  99. android:paddingTop="@dimen/padding"
  100. android:paddingRight="@dimen/text_margin"
  101. android:paddingBottom="@dimen/padding"
  102. android:text="@string/dates"
  103. android:textAllCaps="false"
  104. android:textColor="@color/textHeading"
  105. android:textSize="@dimen/text_14"
  106. app:fontFamily="@font/interegular" />
  107.  
  108. <androidx.appcompat.widget.AppCompatTextView
  109. android:id="@+id/filters"
  110. android:layout_width="match_parent"
  111. android:layout_height="@dimen/btn_size"
  112. android:layout_marginStart="@dimen/padding"
  113. android:layout_weight="1"
  114. android:background="@drawable/guide_btn_border"
  115. android:drawableStart="@drawable/ic_filter_search"
  116. android:drawablePadding="@dimen/text_margin"
  117. android:drawableTint="@color/textHeading"
  118. android:gravity="center"
  119. android:paddingLeft="@dimen/text_margin"
  120. android:paddingTop="@dimen/padding"
  121. android:paddingRight="@dimen/text_margin"
  122. android:paddingBottom="@dimen/padding"
  123. android:text="@string/filter"
  124. android:textAllCaps="false"
  125. android:textColor="@color/textHeading"
  126. android:textSize="@dimen/text_14"
  127. app:fontFamily="@font/interegular" />
  128. </LinearLayout>
  129.  
  130. <androidx.appcompat.widget.AppCompatTextView
  131. android:id="@+id/title"
  132. android:layout_width="wrap_content"
  133. android:layout_height="wrap_content"
  134. android:layout_marginLeft="@dimen/text_margin"
  135. android:layout_marginRight="@dimen/text_margin"
  136. android:fontFamily="@font/interbold"
  137. android:gravity="left"
  138. android:text="@string/recomendation_tour"
  139. android:textAllCaps="false"
  140. android:textColor="@color/textPrimary"
  141. android:textSize="@dimen/text_22"
  142. app:fontFamily="@font/interbold"
  143. app:layout_constraintLeft_toLeftOf="parent"
  144. app:layout_constraintTop_toTopOf="parent" />
  145.  
  146. <androidx.recyclerview.widget.RecyclerView
  147. android:id="@+id/tour_popular_list"
  148. android:layout_width="match_parent"
  149. android:layout_height="wrap_content"
  150. android:layout_marginStart="@dimen/text_margin"
  151. android:layout_marginBottom="@dimen/text_margin"
  152. android:nestedScrollingEnabled="false"
  153. android:orientation="horizontal"
  154. app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
  155. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  156. tools:listitem="@layout/row_tour" />
  157.  
  158. <View
  159. android:layout_width="match_parent"
  160. android:layout_height="0.5dp"
  161. android:layout_marginLeft="@dimen/text_margin"
  162. android:layout_marginRight="@dimen/text_margin"
  163. android:background="@color/sepColor" />
  164.  
  165. <androidx.recyclerview.widget.RecyclerView
  166. android:id="@+id/tour_list"
  167. android:layout_width="match_parent"
  168. android:layout_height="wrap_content"
  169. android:layout_marginStart="@dimen/text_margin"
  170. android:layout_marginEnd="@dimen/text_margin"
  171. android:nestedScrollingEnabled="false"
  172. tools:listitem="@layout/row_tour" />
  173.  
  174. <ProgressBar
  175. android:id="@+id/progress"
  176. android:layout_width="match_parent"
  177. android:layout_height="wrap_content"
  178. android:layout_gravity="center"
  179. android:visibility="gone" />
  180.  
  181. </LinearLayout>
  182.  
  183. </androidx.core.widget.NestedScrollView>
  184. </androidx.coordinatorlayout.widget.CoordinatorLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement