|
58 | 58 | android:orientation="horizontal"
|
59 | 59 | app:layout_constraintGuide_begin="35dp" />
|
60 | 60 |
|
| 61 | + <View |
| 62 | + android:id="@+id/view_top" |
| 63 | + android:layout_width="0dp" |
| 64 | + android:layout_height="120dp" |
| 65 | + android:background="@color/main_dark_grey" |
| 66 | + app:layout_constraintEnd_toEndOf="parent" |
| 67 | + app:layout_constraintStart_toStartOf="parent" |
| 68 | + app:layout_constraintTop_toTopOf="parent" /> |
| 69 | + |
| 70 | + <View |
| 71 | + android:id="@+id/view_search" |
| 72 | + android:layout_width="0dp" |
| 73 | + android:layout_height="50dp" |
| 74 | + android:layout_marginBottom="15dp" |
| 75 | + android:background="@drawable/background_search" |
| 76 | + app:layout_constraintBottom_toBottomOf="@id/view_top" |
| 77 | + app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
| 78 | + app:layout_constraintStart_toStartOf="@id/guide_line_start" /> |
| 79 | + |
61 | 80 | <TextView
|
62 | 81 | android:id="@+id/text_view_start_position"
|
63 | 82 | android:layout_width="0dp"
|
64 |
| - android:layout_height="wrap_content" |
65 |
| - android:background="@drawable/background_gray_d9_8" |
| 83 | + android:layout_height="0dp" |
| 84 | + android:layout_marginStart="10dp" |
| 85 | + android:layout_marginEnd="5dp" |
66 | 86 | android:ellipsize="end"
|
| 87 | + android:gravity="center" |
67 | 88 | android:maxLines="1"
|
68 |
| - android:padding="8dp" |
69 |
| - android:text="@{@string/start_position_text(startPosition)}" |
70 |
| - android:textColor="@color/black" |
71 |
| - android:textSize="24sp" |
72 |
| - android:textStyle="bold" |
73 |
| - app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
74 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
75 |
| - app:layout_constraintTop_toTopOf="@id/guideline_top" /> |
| 89 | + android:text="@{startPosition}" |
| 90 | + android:textColor="@color/main_light_grey" |
| 91 | + android:textSize="17sp" |
| 92 | + app:layout_constraintBottom_toBottomOf="@id/view_search" |
| 93 | + app:layout_constraintEnd_toStartOf="@id/image_view_arrow_right" |
| 94 | + app:layout_constraintStart_toStartOf="@id/view_search" |
| 95 | + app:layout_constraintTop_toTopOf="@id/view_search" |
| 96 | + tools:text="출발지" /> |
| 97 | + |
| 98 | + <ImageView |
| 99 | + android:id="@+id/image_view_arrow_right" |
| 100 | + android:layout_width="wrap_content" |
| 101 | + android:layout_height="wrap_content" |
| 102 | + app:layout_constraintBottom_toBottomOf="@id/view_search" |
| 103 | + app:layout_constraintEnd_toEndOf="@id/view_search" |
| 104 | + app:layout_constraintStart_toStartOf="@id/view_search" |
| 105 | + app:layout_constraintTop_toTopOf="@id/view_search" |
| 106 | + app:srcCompat="@drawable/ic_arrow_right" /> |
76 | 107 |
|
77 | 108 | <TextView
|
78 | 109 | android:id="@+id/text_view_end_position"
|
79 | 110 | android:layout_width="0dp"
|
80 |
| - android:layout_height="wrap_content" |
81 |
| - android:layout_marginTop="8dp" |
82 |
| - android:background="@drawable/background_gray_d9_8" |
| 111 | + android:layout_height="0dp" |
| 112 | + android:layout_marginStart="5dp" |
| 113 | + android:layout_marginEnd="10dp" |
83 | 114 | android:ellipsize="end"
|
| 115 | + android:gravity="center" |
84 | 116 | android:maxLines="1"
|
85 |
| - android:padding="8dp" |
86 |
| - android:text="@{@string/end_position_text(endPosition)}" |
87 |
| - android:textColor="@color/black" |
88 |
| - android:textSize="24sp" |
89 |
| - android:textStyle="bold" |
90 |
| - app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
| 117 | + android:text="@{endPosition}" |
| 118 | + android:textColor="@color/main_light_grey" |
| 119 | + android:textSize="17sp" |
| 120 | + app:layout_constraintBottom_toBottomOf="@id/view_search" |
| 121 | + app:layout_constraintEnd_toEndOf="@id/view_search" |
| 122 | + app:layout_constraintStart_toEndOf="@id/image_view_arrow_right" |
| 123 | + app:layout_constraintTop_toTopOf="@id/view_search" |
| 124 | + tools:text="도착지" /> |
| 125 | + |
| 126 | + <ImageView |
| 127 | + android:id="@+id/image_view_transport" |
| 128 | + android:layout_width="96dp" |
| 129 | + android:layout_height="96dp" |
| 130 | + android:layout_marginTop="12dp" |
| 131 | + android:src="@drawable/ic_bus" |
91 | 132 | app:layout_constraintStart_toStartOf="@id/guide_line_start"
|
92 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_start_position" /> |
| 133 | + app:layout_constraintTop_toBottomOf="@id/view_top" /> |
93 | 134 |
|
94 | 135 | <TextView
|
95 | 136 | android:id="@+id/text_view_last_time"
|
96 | 137 | android:layout_width="0dp"
|
97 | 138 | android:layout_height="wrap_content"
|
98 |
| - android:layout_marginTop="16dp" |
99 |
| - android:gravity="center" |
100 |
| - android:textColor="@color/black" |
101 |
| - android:textSize="21sp" |
102 | 139 | android:text="@{@string/last_transport_arrival_time(lastTime)}"
|
| 140 | + android:textColor="@color/main_dark_grey" |
| 141 | + android:textSize="21sp" |
| 142 | + app:layout_constraintBottom_toBottomOf="@id/image_view_transport" |
103 | 143 | app:layout_constraintEnd_toEndOf="@id/guide_line_end"
|
104 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
105 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_end_position" /> |
106 |
| - |
| 144 | + app:layout_constraintStart_toEndOf="@id/image_view_transport" |
| 145 | + app:layout_constraintTop_toTopOf="@id/image_view_transport" |
| 146 | + tools:text="막차 도착 예정 시간 23:30:10" /> |
107 | 147 |
|
108 | 148 | <ImageView
|
109 | 149 | android:id="@+id/image_view_walk"
|
110 | 150 | android:layout_width="96dp"
|
111 | 151 | android:layout_height="96dp"
|
112 | 152 | android:layout_marginTop="36dp"
|
113 | 153 | app:layout_constraintStart_toStartOf="@id/guide_line_start"
|
114 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_last_time" |
| 154 | + app:layout_constraintTop_toBottomOf="@id/image_view_transport" |
115 | 155 | app:srcCompat="@drawable/ic_baseline_directions_walk_32" />
|
116 | 156 |
|
117 | 157 | <TextView
|
118 | 158 | android:id="@+id/text_view_walk"
|
119 | 159 | android:layout_width="0dp"
|
120 | 160 | android:layout_height="wrap_content"
|
121 |
| - android:textColor="@color/black" |
122 |
| - android:textSize="18sp" |
123 |
| - app:layout_constraintBottom_toBottomOf="@id/image_view_walk" |
124 | 161 | android:text="@{@string/last_transport_walking_time(walkTime)}"
|
| 162 | + android:textColor="@color/main_dark_grey" |
| 163 | + android:textSize="21sp" |
| 164 | + app:layout_constraintBottom_toBottomOf="@id/image_view_walk" |
125 | 165 | app:layout_constraintEnd_toEndOf="@id/guide_line_end"
|
126 | 166 | app:layout_constraintStart_toEndOf="@id/image_view_walk"
|
127 |
| - app:layout_constraintTop_toTopOf="@id/image_view_walk" /> |
128 |
| - |
129 |
| - <NumberPicker |
130 |
| - android:id="@+id/number_picker_alarm_time" |
131 |
| - android:layout_width="wrap_content" |
132 |
| - android:layout_height="wrap_content" |
133 |
| - android:layout_marginStart="12dp" |
134 |
| - android:layout_marginTop="24dp" |
135 |
| - android:value="@={alarmViewModel.alarmTime}" |
136 |
| - app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
137 |
| - app:layout_constraintStart_toEndOf="@id/text_view_alarm_time" |
138 |
| - app:layout_constraintTop_toBottomOf="@id/image_view_walk" /> |
| 167 | + app:layout_constraintTop_toTopOf="@id/image_view_walk" |
| 168 | + tools:text="정류장까지의 예상 도보 시간 : 10분" /> |
139 | 169 |
|
140 | 170 | <TextView
|
141 | 171 | android:id="@+id/text_view_alarm_time"
|
142 | 172 | android:layout_width="wrap_content"
|
143 | 173 | android:layout_height="wrap_content"
|
144 |
| - android:layout_marginEnd="12dp" |
145 | 174 | android:text="@{@string/alarm_time_text(alarmViewModel.alarmTime)}"
|
146 |
| - android:textColor="@color/black" |
147 |
| - android:textSize="16sp" |
| 175 | + android:textColor="@color/main_dark_grey" |
| 176 | + android:textSize="21sp" |
148 | 177 | app:layout_constraintBottom_toBottomOf="@id/number_picker_alarm_time"
|
149 |
| - app:layout_constraintEnd_toStartOf="@id/number_picker_alarm_time" |
150 |
| - app:layout_constraintHorizontal_chainStyle="packed" |
151 | 178 | app:layout_constraintStart_toStartOf="@id/guide_line_start"
|
152 | 179 | app:layout_constraintTop_toTopOf="@id/number_picker_alarm_time"
|
153 |
| - tools:text="알람이 막차시간\n10분전에\n울리도록 설정하시겠습니까?" /> |
| 180 | + tools:text="막차시간 10분전에\n알람이 울리도록\n설정하시겠습니까?" /> |
154 | 181 |
|
155 |
| - <TextView |
156 |
| - android:id="@+id/text_view_alarm_method" |
| 182 | + <NumberPicker |
| 183 | + android:id="@+id/number_picker_alarm_time" |
157 | 184 | android:layout_width="wrap_content"
|
158 | 185 | android:layout_height="wrap_content"
|
159 |
| - android:layout_marginTop="8dp" |
160 |
| - android:layout_marginEnd="12dp" |
161 |
| - android:text="@string/alarm_method_text" |
162 |
| - android:textColor="@color/black" |
163 |
| - android:textSize="16sp" |
164 |
| - app:layout_constraintBottom_toBottomOf="@id/toggle_group_alarm" |
165 |
| - app:layout_constraintEnd_toStartOf="@id/toggle_group_alarm" |
166 |
| - app:layout_constraintHorizontal_chainStyle="packed" |
167 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
168 |
| - app:layout_constraintTop_toTopOf="@id/toggle_group_alarm" /> |
| 186 | + android:layout_marginStart="12dp" |
| 187 | + android:layout_marginTop="24dp" |
| 188 | + android:value="@={alarmViewModel.alarmTime}" |
| 189 | + app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
| 190 | + app:layout_constraintStart_toEndOf="@id/text_view_alarm_time" |
| 191 | + app:layout_constraintTop_toBottomOf="@id/image_view_walk" /> |
169 | 192 |
|
170 | 193 | <com.google.android.material.button.MaterialButtonToggleGroup
|
171 | 194 | android:id="@+id/toggle_group_alarm"
|
172 |
| - android:layout_width="wrap_content" |
| 195 | + android:layout_width="0dp" |
173 | 196 | android:layout_height="wrap_content"
|
174 |
| - android:layout_marginStart="12dp" |
175 | 197 | android:layout_marginBottom="9dp"
|
176 | 198 | app:checkedButton="@id/button_sound"
|
177 | 199 | app:layout_constraintBottom_toTopOf="@id/text_view_register_alarm"
|
178 |
| - app:layout_constraintEnd_toEndOf="parent" |
179 |
| - app:layout_constraintHorizontal_chainStyle="packed" |
180 |
| - app:layout_constraintStart_toEndOf="@id/text_view_alarm_method" |
181 |
| - app:layout_constraintTop_toBottomOf="@id/number_picker_alarm_time" |
| 200 | + app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
| 201 | + app:layout_constraintStart_toStartOf="@id/guide_line_start" |
182 | 202 | app:singleSelection="true">
|
183 | 203 |
|
184 | 204 | <com.google.android.material.button.MaterialButton
|
185 | 205 | android:id="@+id/button_sound"
|
186 | 206 | style="@style/Widget.Material3.Button.OutlinedButton"
|
187 | 207 | android:layout_width="wrap_content"
|
188 | 208 | android:layout_height="wrap_content"
|
| 209 | + android:layout_weight="1" |
189 | 210 | android:text="@string/sound_text" />
|
190 | 211 |
|
191 | 212 | <com.google.android.material.button.MaterialButton
|
192 | 213 | android:id="@+id/button_wave"
|
193 | 214 | style="@style/Widget.Material3.Button.OutlinedButton"
|
194 | 215 | android:layout_width="wrap_content"
|
195 | 216 | android:layout_height="wrap_content"
|
| 217 | + android:layout_weight="1" |
196 | 218 | android:text="@string/wave_text" />
|
197 | 219 |
|
198 | 220 | </com.google.android.material.button.MaterialButtonToggleGroup>
|
199 | 221 |
|
200 |
| - <com.google.android.material.button.MaterialButton |
| 222 | + <TextView |
201 | 223 | android:id="@+id/text_view_register_alarm"
|
202 |
| - style="@style/Widget.Material3.Button.OutlinedButton" |
203 | 224 | android:layout_width="0dp"
|
204 | 225 | android:layout_height="wrap_content"
|
205 | 226 | android:layout_marginBottom="24dp"
|
| 227 | + android:background="@drawable/button_background" |
| 228 | + android:gravity="center" |
206 | 229 | android:onClick="@{() -> fragment.setAlarmRegisterListener()}"
|
| 230 | + android:padding="10dp" |
207 | 231 | android:text="@string/register_alarm_text"
|
208 |
| - android:textColor="@color/black" |
| 232 | + android:textColor="@color/white" |
209 | 233 | android:textSize="16sp"
|
210 | 234 | android:textStyle="bold"
|
211 | 235 | app:layout_constraintBottom_toBottomOf="parent"
|
|
0 commit comments