-
Notifications
You must be signed in to change notification settings - Fork 7
/
fragment_user_location_switch.xml
92 lines (81 loc) · 4.07 KB
/
fragment_user_location_switch.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
android:orientation="vertical">
<LinearLayout
android:id="@+id/user_location_toolbar"
android:layout_width="wrap_content"
android:layout_height="?attr/actionBarSize"
android:orientation="horizontal">
<ImageView
android:id="@+id/im_user_location_back"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="@dimen/spacing_small"
android:src="@drawable/ic_arrow_back" />
<TextView
style="@style/GreyTextStyle"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:fontFamily="@font/opensans_semibold"
android:text="Enter Location" />
</LinearLayout>
<androidx.cardview.widget.CardView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small"
app:cardCornerRadius="@dimen/card_corner_radius_small">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<ImageView
android:id="@+id/im_user_location_search"
android:layout_width="@dimen/size_extra_small_icon"
android:layout_height="@dimen/size_extra_small_icon"
android:layout_marginStart="@dimen/spacing_small"
android:src="@drawable/ic_search_grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/et_user_location"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<EditText
android:id="@+id/et_user_location"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/spacing_small"
android:layout_marginEnd="@dimen/spacing_small"
android:background="@null"
android:padding="@dimen/spacing_extra_small"
android:inputType="text"
android:maxLines="1"
android:textColor="@color/pinkish_grey"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toStartOf="@id/im_user_location_cross"
app:layout_constraintStart_toEndOf="@id/im_user_location_search"
app:layout_constraintTop_toTopOf="parent"
tools:text="Beng" />
<ImageView
android:id="@+id/im_user_location_cross"
android:layout_width="@dimen/size_extra_small_icon"
android:layout_height="@dimen/size_extra_small_icon"
android:layout_marginRight="@dimen/spacing_normal"
android:src="@drawable/ic_cross_black"
android:visibility="invisible"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/et_user_location"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
</androidx.cardview.widget.CardView>
<com.airbnb.epoxy.EpoxyRecyclerView
android:id="@+id/epoxy_rv_user_location"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_margin="@dimen/spacing_extra_small" />
</LinearLayout>