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