|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<layout |
3 |
| - xmlns:android="http://schemas.android.com/apk/res/android" |
| 2 | +<layout xmlns:android="http://schemas.android.com/apk/res/android" |
4 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
5 |
| - xmlns:tools="http://schemas.android.com/tools" |
6 | 4 | xmlns:bind="http://schemas.android.com/apk/res-auto">
|
7 | 5 |
|
8 | 6 | <data>
|
| 7 | + |
9 | 8 | <variable
|
10 | 9 | name="placeSearchViewModel"
|
11 | 10 | type="com.stop.ui.placesearch.PlaceSearchViewModel" />
|
|
69 | 68 | android:elevation="15dp"
|
70 | 69 | android:gravity="center_vertical"
|
71 | 70 | android:padding="8dp"
|
72 |
| - android:paddingStart="50dp" |
| 71 | + android:paddingStart="20dp" |
73 | 72 | android:paddingEnd="0dp"
|
74 | 73 | android:text="@string/search_hint"
|
75 | 74 | android:textColor="@color/hint_text_color"
|
|
81 | 80 |
|
82 | 81 | <include
|
83 | 82 | android:id="@+id/home_panel"
|
| 83 | + layout="@layout/home_panel" |
84 | 84 | android:layout_width="0dp"
|
85 | 85 | android:layout_height="0dp"
|
86 | 86 | android:layout_marginEnd="15dp"
|
87 | 87 | android:elevation="15dp"
|
88 |
| - app:layout_constraintStart_toStartOf="@id/guideline_start" |
89 |
| - app:layout_constraintEnd_toStartOf="@id/layout_current" |
90 | 88 | app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"
|
91 | 89 | app:layout_constraintDimensionRatio="h,1.7:1"
|
| 90 | + app:layout_constraintEnd_toStartOf="@id/layout_current" |
92 | 91 | app:layout_constraintHorizontal_bias="1"
|
| 92 | + app:layout_constraintStart_toStartOf="@id/guideline_start" |
93 | 93 | app:layout_constraintWidth_max="300dp"
|
94 |
| - bind:placeSearchViewModel="@{placeSearchViewModel}" |
95 |
| - layout="@layout/home_panel" /> |
| 94 | + bind:placeSearchViewModel="@{placeSearchViewModel}" /> |
96 | 95 |
|
97 | 96 | <androidx.constraintlayout.widget.ConstraintLayout
|
98 | 97 | android:id="@+id/layout_compass"
|
99 | 98 | android:layout_width="60dp"
|
100 | 99 | android:layout_height="60dp"
|
101 | 100 | android:layout_marginBottom="10dp"
|
102 |
| - android:elevation="15dp" |
103 | 101 | android:background="@drawable/background_button"
|
104 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end" |
105 |
| - app:layout_constraintBottom_toTopOf="@id/layout_current"> |
| 102 | + android:elevation="15dp" |
| 103 | + app:layout_constraintBottom_toTopOf="@id/layout_current" |
| 104 | + app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
106 | 105 |
|
107 | 106 | <ImageView
|
108 | 107 | android:layout_width="0dp"
|
109 | 108 | android:layout_height="0dp"
|
110 | 109 | android:src="@drawable/ic_compass"
|
111 |
| - app:layout_constraintWidth_percent="0.5" |
112 |
| - app:layout_constraintStart_toStartOf="parent" |
| 110 | + app:layout_constraintBottom_toBottomOf="parent" |
113 | 111 | app:layout_constraintEnd_toEndOf="parent"
|
| 112 | + app:layout_constraintStart_toStartOf="parent" |
114 | 113 | app:layout_constraintTop_toTopOf="parent"
|
115 |
| - app:layout_constraintBottom_toBottomOf="parent" /> |
| 114 | + app:layout_constraintWidth_percent="0.5" /> |
116 | 115 | </androidx.constraintlayout.widget.ConstraintLayout>
|
117 | 116 |
|
118 | 117 | <androidx.constraintlayout.widget.ConstraintLayout
|
119 | 118 | android:id="@+id/layout_current"
|
120 | 119 | android:layout_width="60dp"
|
121 | 120 | android:layout_height="60dp"
|
122 |
| - android:elevation="15dp" |
123 | 121 | android:background="@drawable/background_button"
|
124 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end" |
125 |
| - app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"> |
| 122 | + android:elevation="15dp" |
| 123 | + app:layout_constraintBottom_toBottomOf="@id/guideline_bottom" |
| 124 | + app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
126 | 125 |
|
127 | 126 | <ImageView
|
128 | 127 | android:layout_width="0dp"
|
129 | 128 | android:layout_height="0dp"
|
130 | 129 | android:src="@drawable/ic_location"
|
131 |
| - app:layout_constraintWidth_percent="0.5" |
132 |
| - app:layout_constraintStart_toStartOf="parent" |
| 130 | + app:layout_constraintBottom_toBottomOf="parent" |
133 | 131 | app:layout_constraintEnd_toEndOf="parent"
|
| 132 | + app:layout_constraintStart_toStartOf="parent" |
134 | 133 | app:layout_constraintTop_toTopOf="parent"
|
135 |
| - app:layout_constraintBottom_toBottomOf="parent" /> |
| 134 | + app:layout_constraintWidth_percent="0.5" /> |
136 | 135 | </androidx.constraintlayout.widget.ConstraintLayout>
|
137 | 136 |
|
138 | 137 | <androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
0 commit comments