|
1 | 1 | <?xml version="1.0" encoding="utf-8"?>
|
2 | 2 | <layout xmlns:android="http://schemas.android.com/apk/res/android"
|
3 | 3 | xmlns:app="http://schemas.android.com/apk/res-auto"
|
4 |
| - xmlns:tools="http://schemas.android.com/tools" |
5 | 4 | xmlns:bind="http://schemas.android.com/apk/res-auto">
|
6 | 5 |
|
7 | 6 | <data>
|
|
62 | 61 | android:layout_marginEnd="15dp"
|
63 | 62 | android:layout_marginTop="30dp"
|
64 | 63 | android:elevation="15dp"
|
65 |
| - android:background="@drawable/background_panel" |
66 | 64 | android:visibility="@{placeSearchViewModel.panelVisibility}"
|
67 | 65 | app:layout_constraintStart_toStartOf="@id/guideline_start"
|
68 | 66 | app:layout_constraintEnd_toStartOf="@id/layout_compass"
|
69 | 67 | app:layout_constraintTop_toTopOf="@id/layout_compass"
|
70 | 68 | app:layout_constraintBottom_toBottomOf="@id/guideline_bottom">
|
71 | 69 |
|
72 |
| - <ImageView |
73 |
| - android:id="@+id/image_view_panel_point" |
74 |
| - android:layout_width="30dp" |
75 |
| - android:layout_height="30dp" |
76 |
| - android:layout_marginStart="17dp" |
77 |
| - android:layout_marginTop="20dp" |
78 |
| - app:layout_constraintStart_toStartOf="parent" |
79 |
| - app:layout_constraintTop_toTopOf="parent" |
80 |
| - app:srcCompat="@drawable/ic_point_marker" /> |
81 |
| - |
82 |
| - <TextView |
83 |
| - android:id="@+id/text_view_panel_title" |
84 |
| - android:layout_width="0dp" |
85 |
| - android:layout_height="30dp" |
86 |
| - android:layout_marginStart="10dp" |
87 |
| - android:layout_marginEnd="10dp" |
88 |
| - android:layout_marginTop="19dp" |
89 |
| - android:maxLines="1" |
90 |
| - android:ellipsize="end" |
91 |
| - android:text="@{placeSearchViewModel.geoLocation.title}" |
92 |
| - android:textSize="22sp" |
93 |
| - android:textColor="@color/white" |
94 |
| - android:gravity="center_vertical" |
95 |
| - app:layout_constraintStart_toEndOf="@id/image_view_panel_point" |
96 |
| - app:layout_constraintEnd_toStartOf="@id/view_panel_bookmark" |
97 |
| - app:layout_constraintTop_toTopOf="parent" |
98 |
| - tools:text="성복역" /> |
99 |
| - |
100 |
| - <View |
101 |
| - android:id="@+id/view_panel_bookmark" |
102 |
| - android:layout_width="30dp" |
103 |
| - android:layout_height="30dp" |
104 |
| - android:layout_marginEnd="20dp" |
105 |
| - android:layout_marginTop="20dp" |
106 |
| - android:background="@drawable/background_button" |
107 |
| - app:layout_constraintEnd_toEndOf="parent" |
108 |
| - app:layout_constraintTop_toTopOf="parent" /> |
109 |
| - |
110 |
| - <ImageView |
111 |
| - android:id="@+id/image_view_panel_bookmark" |
112 |
| - android:layout_width="15dp" |
113 |
| - android:layout_height="15dp" |
114 |
| - app:layout_constraintStart_toStartOf="@id/view_panel_bookmark" |
115 |
| - app:layout_constraintEnd_toEndOf="@id/view_panel_bookmark" |
116 |
| - app:layout_constraintTop_toTopOf="@id/view_panel_bookmark" |
117 |
| - app:layout_constraintBottom_toBottomOf="@id/view_panel_bookmark" |
118 |
| - app:srcCompat="@drawable/ic_bookmark" /> |
119 |
| - |
120 |
| - <TextView |
121 |
| - android:id="@+id/text_view_panel_address" |
122 |
| - android:layout_width="0dp" |
123 |
| - android:layout_height="wrap_content" |
124 |
| - android:layout_marginStart="20dp" |
125 |
| - android:layout_marginEnd="20dp" |
126 |
| - android:maxLines="1" |
127 |
| - android:ellipsize="end" |
128 |
| - android:text="@{placeSearchViewModel.geoLocation.roadAddress}" |
129 |
| - android:textSize="14sp" |
130 |
| - android:textColor="#808590" |
131 |
| - app:layout_constraintEnd_toEndOf="parent" |
132 |
| - app:layout_constraintStart_toStartOf="parent" |
133 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_panel_title" |
134 |
| - app:layout_constraintBottom_toTopOf="@id/view_panel_start" |
135 |
| - tools:text="서울 구로구 디지털로31길 41" /> |
136 |
| - |
137 |
| - <TextView |
138 |
| - android:id="@+id/text_view_panel_distance" |
139 |
| - android:layout_width="wrap_content" |
140 |
| - android:layout_height="wrap_content" |
141 |
| - android:layout_marginStart="20dp" |
142 |
| - android:layout_marginBottom="16dp" |
143 |
| - android:text="@{placeSearchViewModel.distance.toString()}" |
144 |
| - android:textSize="40sp" |
145 |
| - android:textColor="@color/white" |
146 |
| - android:textStyle="bold" |
147 |
| - app:layout_constraintStart_toStartOf="parent" |
148 |
| - app:layout_constraintBottom_toBottomOf="parent" |
149 |
| - tools:text="1.6" /> |
150 |
| - |
151 |
| - <TextView |
152 |
| - android:id="@+id/text_view_panel_distance_km" |
153 |
| - android:layout_width="wrap_content" |
154 |
| - android:layout_height="wrap_content" |
155 |
| - android:layout_marginStart="10dp" |
156 |
| - android:layout_marginBottom="22dp" |
157 |
| - android:text="@string/km" |
158 |
| - android:textSize="20sp" |
159 |
| - android:textColor="@color/white" |
160 |
| - android:textStyle="bold" |
161 |
| - app:layout_constraintStart_toEndOf="@id/text_view_panel_distance" |
162 |
| - app:layout_constraintBottom_toBottomOf="parent" |
163 |
| - tools:text="km" /> |
164 |
| - |
165 |
| - <View |
166 |
| - android:id="@+id/view_panel_start" |
167 |
| - android:layout_width="50dp" |
168 |
| - android:layout_height="50dp" |
169 |
| - android:layout_marginEnd="10dp" |
170 |
| - android:layout_marginBottom="20dp" |
171 |
| - android:background="@drawable/background_button" |
172 |
| - app:layout_constraintEnd_toStartOf="@id/view_panel_end" |
173 |
| - app:layout_constraintBottom_toBottomOf="parent" /> |
174 |
| - |
175 |
| - <ImageView |
176 |
| - android:id="@+id/image_view_panel_start" |
177 |
| - android:layout_width="25dp" |
178 |
| - android:layout_height="25dp" |
179 |
| - app:layout_constraintStart_toStartOf="@id/view_panel_start" |
180 |
| - app:layout_constraintEnd_toEndOf="@id/view_panel_start" |
181 |
| - app:layout_constraintTop_toTopOf="@id/view_panel_start" |
182 |
| - app:layout_constraintBottom_toBottomOf="@id/view_panel_start" |
183 |
| - app:srcCompat="@drawable/ic_start" /> |
184 |
| - |
185 |
| - <View |
186 |
| - android:id="@+id/view_panel_end" |
187 |
| - android:layout_width="50dp" |
188 |
| - android:layout_height="50dp" |
189 |
| - android:layout_marginEnd="20dp" |
190 |
| - android:layout_marginBottom="20dp" |
191 |
| - android:background="@drawable/background_button" |
192 |
| - app:layout_constraintEnd_toEndOf="parent" |
193 |
| - app:layout_constraintBottom_toBottomOf="parent" /> |
194 |
| - |
195 |
| - <ImageView |
196 |
| - android:id="@+id/image_view_panel_end" |
197 |
| - android:layout_width="25dp" |
198 |
| - android:layout_height="25dp" |
199 |
| - app:layout_constraintStart_toStartOf="@id/view_panel_end" |
200 |
| - app:layout_constraintEnd_toEndOf="@id/view_panel_end" |
201 |
| - app:layout_constraintTop_toTopOf="@id/view_panel_end" |
202 |
| - app:layout_constraintBottom_toBottomOf="@id/view_panel_end" |
203 |
| - app:srcCompat="@drawable/ic_end" /> |
| 70 | + <include |
| 71 | + android:id="@+id/home_panel" |
| 72 | + layout="@layout/home_panel" |
| 73 | + bind:placeSearchViewModel="@{placeSearchViewModel}" /> |
204 | 74 | </androidx.constraintlayout.widget.ConstraintLayout>
|
205 | 75 |
|
206 | 76 | <androidx.constraintlayout.widget.ConstraintLayout
|
|
209 | 79 | android:layout_height="52dp"
|
210 | 80 | android:elevation="15dp"
|
211 | 81 | android:background="@drawable/background_search"
|
212 |
| - app:layout_constraintStart_toStartOf="@+id/guideline_start" |
213 |
| - app:layout_constraintEnd_toStartOf="@+id/guideline_end" |
| 82 | + app:layout_constraintStart_toStartOf="@id/guideline_start" |
| 83 | + app:layout_constraintEnd_toStartOf="@id/guideline_end" |
214 | 84 | app:layout_constraintTop_toTopOf="@id/guideline_top">
|
215 | 85 |
|
216 | 86 | <TextView
|
|
316 | 186 | <include
|
317 | 187 | android:id="@+id/home_bottom_sheet"
|
318 | 188 | layout="@layout/home_bottom_sheet"
|
319 |
| - bind:alarmViewModel="@{alarmViewModel}" |
320 |
| - tools:layout_editor_absoluteX="0dp" |
321 |
| - tools:layout_editor_absoluteY="16dp" /> |
| 189 | + bind:alarmViewModel="@{alarmViewModel}" /> |
322 | 190 | </androidx.constraintlayout.widget.ConstraintLayout>
|
323 | 191 | </androidx.coordinatorlayout.widget.CoordinatorLayout>
|
324 | 192 | </androidx.constraintlayout.widget.ConstraintLayout>
|
|
0 commit comments