|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 |
| -<layout |
| 2 | +<layout xmlns:tools="http://schemas.android.com/tools" |
3 | 3 | xmlns:android="http://schemas.android.com/apk/res/android"
|
4 | 4 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
5 | 5 | xmlns:bind="http://schemas.android.com/apk/res-auto">
|
|
23 | 23 | android:layout_width="wrap_content"
|
24 | 24 | android:layout_height="wrap_content"
|
25 | 25 | android:orientation="vertical"
|
26 |
| - app:layout_constraintGuide_begin="16dp" /> |
| 26 | + app:layout_constraintGuide_percent="0.05" /> |
27 | 27 |
|
28 | 28 | <androidx.constraintlayout.widget.Guideline
|
29 | 29 | android:id="@+id/guideline_end"
|
30 | 30 | android:layout_width="wrap_content"
|
31 | 31 | android:layout_height="wrap_content"
|
32 | 32 | android:orientation="vertical"
|
33 |
| - app:layout_constraintGuide_end="16dp" /> |
| 33 | + app:layout_constraintGuide_percent="0.95" /> |
34 | 34 |
|
35 | 35 | <androidx.constraintlayout.widget.Guideline
|
36 | 36 | android:id="@+id/guideline_top"
|
37 | 37 | android:layout_width="wrap_content"
|
38 | 38 | android:layout_height="wrap_content"
|
39 | 39 | android:orientation="horizontal"
|
40 |
| - app:layout_constraintGuide_begin="35dp" /> |
| 40 | + app:layout_constraintGuide_percent="0.06" /> |
41 | 41 |
|
42 | 42 | <androidx.constraintlayout.widget.Guideline
|
43 | 43 | android:id="@+id/guideline_bottom"
|
|
64 | 64 | android:elevation="15dp"
|
65 | 65 | android:gravity="center_vertical"
|
66 | 66 | android:padding="8dp"
|
| 67 | + android:paddingStart="50dp" |
| 68 | + android:paddingEnd="0dp" |
67 | 69 | android:text="@string/search_hint"
|
68 | 70 | android:textColor="@color/hint_text_color"
|
69 | 71 | android:textSize="17sp"
|
|
75 | 77 | <include
|
76 | 78 | android:id="@+id/home_panel"
|
77 | 79 | android:layout_width="0dp"
|
78 |
| - android:layout_height="170dp" |
79 |
| - android:layout_marginTop="30dp" |
80 |
| - android:layout_marginEnd="90dp" |
| 80 | + android:layout_height="0dp" |
| 81 | + android:layout_marginEnd="15dp" |
81 | 82 | android:elevation="15dp"
|
82 |
| - app:layout_constraintBottom_toBottomOf="@id/guideline_bottom" |
83 |
| - app:layout_constraintEnd_toEndOf="parent" |
84 | 83 | app:layout_constraintStart_toStartOf="@id/guideline_start"
|
| 84 | + app:layout_constraintEnd_toStartOf="@id/layout_current" |
| 85 | + app:layout_constraintBottom_toBottomOf="@id/guideline_bottom" |
| 86 | + app:layout_constraintDimensionRatio="h,1.7:1" |
| 87 | + app:layout_constraintHorizontal_bias="1" |
| 88 | + app:layout_constraintWidth_max="300dp" |
85 | 89 | bind:placeSearchViewModel="@{placeSearchViewModel}"
|
86 | 90 | layout="@layout/home_panel" />
|
87 | 91 |
|
|
90 | 94 | android:layout_width="60dp"
|
91 | 95 | android:layout_height="60dp"
|
92 | 96 | android:layout_marginBottom="10dp"
|
93 |
| - android:background="@drawable/background_button" |
94 | 97 | android:elevation="15dp"
|
95 |
| - app:layout_constraintBottom_toTopOf="@id/layout_current" |
96 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
| 98 | + android:background="@drawable/background_button" |
| 99 | + app:layout_constraintEnd_toEndOf="@id/guideline_end" |
| 100 | + app:layout_constraintBottom_toTopOf="@id/layout_current"> |
97 | 101 |
|
98 | 102 | <ImageView
|
99 |
| - android:id="@+id/image_view_compass" |
100 |
| - android:layout_width="30dp" |
101 |
| - android:layout_height="30dp" |
102 |
| - android:elevation="15dp" |
103 |
| - app:layout_constraintBottom_toBottomOf="@id/layout_compass" |
104 |
| - app:layout_constraintEnd_toEndOf="@id/layout_compass" |
105 |
| - app:layout_constraintStart_toStartOf="@id/layout_compass" |
106 |
| - app:layout_constraintTop_toTopOf="@id/layout_compass" |
107 |
| - app:srcCompat="@drawable/ic_compass" /> |
| 103 | + android:layout_width="0dp" |
| 104 | + android:layout_height="0dp" |
| 105 | + android:src="@drawable/ic_compass" |
| 106 | + app:layout_constraintWidth_percent="0.5" |
| 107 | + app:layout_constraintStart_toStartOf="parent" |
| 108 | + app:layout_constraintEnd_toEndOf="parent" |
| 109 | + app:layout_constraintTop_toTopOf="parent" |
| 110 | + app:layout_constraintBottom_toBottomOf="parent" /> |
108 | 111 | </androidx.constraintlayout.widget.ConstraintLayout>
|
109 | 112 |
|
110 | 113 | <androidx.constraintlayout.widget.ConstraintLayout
|
111 | 114 | android:id="@+id/layout_current"
|
112 | 115 | android:layout_width="60dp"
|
113 | 116 | android:layout_height="60dp"
|
114 |
| - android:layout_marginBottom="10dp" |
115 |
| - android:background="@drawable/background_button" |
116 | 117 | android:elevation="15dp"
|
117 |
| - app:layout_constraintBottom_toBottomOf="@id/guideline_bottom" |
118 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
| 118 | + android:background="@drawable/background_button" |
| 119 | + app:layout_constraintEnd_toEndOf="@id/guideline_end" |
| 120 | + app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"> |
119 | 121 |
|
120 | 122 | <ImageView
|
121 |
| - android:id="@+id/image_view_current" |
122 |
| - android:layout_width="30dp" |
123 |
| - android:layout_height="30dp" |
124 |
| - android:elevation="15dp" |
125 |
| - app:layout_constraintBottom_toBottomOf="@id/layout_current" |
126 |
| - app:layout_constraintEnd_toEndOf="@id/layout_current" |
127 |
| - app:layout_constraintStart_toStartOf="@id/layout_current" |
128 |
| - app:layout_constraintTop_toTopOf="@id/layout_current" |
129 |
| - app:srcCompat="@drawable/ic_location" /> |
| 123 | + android:layout_width="0dp" |
| 124 | + android:layout_height="0dp" |
| 125 | + android:src="@drawable/ic_location" |
| 126 | + app:layout_constraintWidth_percent="0.5" |
| 127 | + app:layout_constraintStart_toStartOf="parent" |
| 128 | + app:layout_constraintEnd_toEndOf="parent" |
| 129 | + app:layout_constraintTop_toTopOf="parent" |
| 130 | + app:layout_constraintBottom_toBottomOf="parent" /> |
130 | 131 | </androidx.constraintlayout.widget.ConstraintLayout>
|
131 | 132 |
|
132 | 133 | <androidx.coordinatorlayout.widget.CoordinatorLayout
|
|
0 commit comments