|
4 | 4 | xmlns:tools="http://schemas.android.com/tools">
|
5 | 5 |
|
6 | 6 | <data>
|
| 7 | + |
7 | 8 | <variable
|
8 | 9 | name="viewModel"
|
9 | 10 | type="com.stop.ui.mission.MissionViewModel" />
|
| 11 | + |
| 12 | + <variable |
| 13 | + name="fragment" |
| 14 | + type="com.stop.ui.mission.MissionFragment" /> |
10 | 15 | </data>
|
11 | 16 |
|
12 | 17 | <androidx.constraintlayout.widget.ConstraintLayout
|
|
51 | 56 | app:layout_constraintStart_toStartOf="parent"
|
52 | 57 | app:layout_constraintTop_toTopOf="parent" />
|
53 | 58 |
|
54 |
| - <TextView |
55 |
| - android:id="@+id/text_view_destination" |
56 |
| - android:layout_width="wrap_content" |
57 |
| - android:layout_height="0dp" |
58 |
| - android:layout_marginHorizontal="10dp" |
59 |
| - android:gravity="center_vertical" |
60 |
| - android:textSize="17sp" |
61 |
| - android:text="@{viewModel.destination}" |
62 |
| - android:textColor="@color/main_dark_grey" |
63 |
| - app:layout_constraintStart_toStartOf="@id/guideline_start" |
64 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end" |
65 |
| - app:layout_constraintTop_toBottomOf="@id/guideline_top" |
66 |
| - tools:text="1호선 용산역"/> |
| 59 | + <TextView |
| 60 | + android:id="@+id/text_view_destination" |
| 61 | + android:layout_width="wrap_content" |
| 62 | + android:layout_height="0dp" |
| 63 | + android:layout_marginHorizontal="10dp" |
| 64 | + android:gravity="center_vertical" |
| 65 | + android:text="@{viewModel.destination}" |
| 66 | + android:textColor="@color/main_dark_grey" |
| 67 | + android:textSize="17sp" |
| 68 | + android:textStyle="bold" |
| 69 | + android:background="@drawable/background_button" |
| 70 | + android:paddingHorizontal="10dp" |
| 71 | + android:paddingVertical="3dp" |
| 72 | + android:elevation="15dp" |
| 73 | + app:layout_constraintEnd_toEndOf="@id/guideline_end" |
| 74 | + app:layout_constraintStart_toStartOf="@id/guideline_start" |
| 75 | + app:layout_constraintTop_toBottomOf="@id/guideline_top" |
| 76 | + tools:text="1호선 용산역" /> |
67 | 77 |
|
68 | 78 | <TextView
|
69 | 79 | android:id="@+id/text_view_time_left"
|
70 | 80 | android:layout_width="wrap_content"
|
71 | 81 | android:layout_height="wrap_content"
|
72 | 82 | android:layout_marginTop="32dp"
|
73 |
| - android:text="@{@string/minute_and_second(viewModel.leftMinute, viewModel.leftSecond)}" |
74 |
| - android:textSize="48sp" |
75 |
| - android:textColor="@color/main_dark_grey" |
76 | 83 | android:letterSpacing="0.05"
|
77 |
| - android:shadowRadius="15.0" |
| 84 | + android:paddingHorizontal="5dp" |
| 85 | + android:shadowColor="@color/main_light_grey" |
78 | 86 | android:shadowDx="7.0"
|
79 | 87 | android:shadowDy="7.0"
|
80 |
| - android:shadowColor="@color/main_light_grey" |
| 88 | + android:shadowRadius="15.0" |
| 89 | + android:text="@{@string/minute_and_second(viewModel.leftMinute, viewModel.leftSecond)}" |
| 90 | + android:textColor="@color/main_dark_grey" |
| 91 | + android:textSize="48sp" |
81 | 92 | app:layout_constraintEnd_toEndOf="parent"
|
82 | 93 | app:layout_constraintStart_toStartOf="parent"
|
83 | 94 | app:layout_constraintTop_toBottomOf="@id/text_view_destination"
|
|
88 | 99 | android:layout_width="wrap_content"
|
89 | 100 | android:layout_height="wrap_content"
|
90 | 101 | android:layout_marginStart="16dp"
|
91 |
| - android:textSize="32sp" |
92 |
| - android:textColor="@color/main_dark_grey" |
93 | 102 | android:letterSpacing="0.05"
|
94 |
| - android:shadowRadius="15.0" |
| 103 | + android:shadowColor="@color/main_light_grey" |
95 | 104 | android:shadowDx="7.0"
|
96 | 105 | android:shadowDy="7.0"
|
97 |
| - android:shadowColor="@color/main_light_grey" |
| 106 | + android:shadowRadius="15.0" |
| 107 | + android:textColor="@color/main_dark_grey" |
| 108 | + android:textSize="32sp" |
98 | 109 | android:visibility="invisible"
|
99 | 110 | app:layout_constraintStart_toEndOf="@id/text_view_time_left"
|
100 | 111 | app:layout_constraintTop_toTopOf="@id/text_view_time_left"
|
|
105 | 116 | android:layout_width="60dp"
|
106 | 117 | android:layout_height="60dp"
|
107 | 118 | android:layout_marginBottom="10dp"
|
108 |
| - android:elevation="15dp" |
109 | 119 | android:background="@drawable/background_close_button"
|
| 120 | + android:elevation="15dp" |
| 121 | + android:onClick="@{() -> viewModel.cancelMission()}" |
110 | 122 | app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"
|
111 | 123 | app:layout_constraintEnd_toEndOf="parent"
|
112 |
| - app:layout_constraintStart_toStartOf="parent" |
113 |
| - android:onClick="@{() -> viewModel.cancelMission()}"> |
| 124 | + app:layout_constraintStart_toStartOf="parent"> |
114 | 125 |
|
115 | 126 | <ImageView
|
116 | 127 | android:id="@+id/image_view_mission_close"
|
117 | 128 | android:layout_width="30dp"
|
118 | 129 | android:layout_height="30dp"
|
119 |
| - android:elevation="15dp" |
120 | 130 | android:contentDescription="@string/mission_close_image_view_description"
|
121 |
| - app:layout_constraintStart_toStartOf="parent" |
| 131 | + app:layout_constraintBottom_toBottomOf="parent" |
122 | 132 | app:layout_constraintEnd_toEndOf="parent"
|
| 133 | + app:layout_constraintStart_toStartOf="parent" |
123 | 134 | app:layout_constraintTop_toTopOf="parent"
|
124 |
| - app:layout_constraintBottom_toBottomOf="parent" |
125 | 135 | app:srcCompat="@drawable/ic_close" />
|
126 | 136 | </androidx.constraintlayout.widget.ConstraintLayout>
|
127 | 137 |
|
128 |
| - |
129 |
| - |
130 | 138 | <androidx.constraintlayout.widget.ConstraintLayout
|
131 | 139 | android:id="@+id/layout_compass"
|
132 | 140 | android:layout_width="60dp"
|
133 | 141 | android:layout_height="60dp"
|
134 | 142 | android:layout_marginBottom="10dp"
|
135 |
| - android:elevation="15dp" |
136 | 143 | android:background="@drawable/background_button"
|
137 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end" |
138 |
| - app:layout_constraintBottom_toTopOf="@id/layout_person_current"> |
| 144 | + android:elevation="15dp" |
| 145 | + android:onClick="@{() -> fragment.setCompassMode()}" |
| 146 | + app:layout_constraintBottom_toTopOf="@id/layout_zoom_out" |
| 147 | + app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
139 | 148 |
|
140 | 149 | <ImageView
|
141 | 150 | android:id="@+id/image_view_compass"
|
142 | 151 | android:layout_width="30dp"
|
143 | 152 | android:layout_height="30dp"
|
144 |
| - android:elevation="15dp" |
145 |
| - app:layout_constraintStart_toStartOf="parent" |
| 153 | + app:layout_constraintBottom_toBottomOf="parent" |
146 | 154 | app:layout_constraintEnd_toEndOf="parent"
|
| 155 | + app:layout_constraintStart_toStartOf="parent" |
147 | 156 | app:layout_constraintTop_toTopOf="parent"
|
148 |
| - app:layout_constraintBottom_toBottomOf="parent" |
149 | 157 | app:srcCompat="@drawable/ic_compass" />
|
150 | 158 | </androidx.constraintlayout.widget.ConstraintLayout>
|
151 | 159 |
|
152 | 160 | <androidx.constraintlayout.widget.ConstraintLayout
|
153 |
| - android:id="@+id/layout_person_current" |
| 161 | + android:id="@+id/layout_zoom_out" |
154 | 162 | android:layout_width="60dp"
|
155 | 163 | android:layout_height="60dp"
|
| 164 | + android:layout_marginBottom="10dp" |
| 165 | + android:background="@drawable/background_button" |
156 | 166 | android:elevation="15dp"
|
| 167 | + android:onClick="@{() -> fragment.setZoomOut()}" |
| 168 | + app:layout_constraintBottom_toTopOf="@id/layout_person_current" |
| 169 | + app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
| 170 | + |
| 171 | + <ImageView |
| 172 | + android:id="@+id/image_view_zoom_out" |
| 173 | + android:layout_width="30dp" |
| 174 | + android:layout_height="30dp" |
| 175 | + app:layout_constraintBottom_toBottomOf="parent" |
| 176 | + app:layout_constraintEnd_toEndOf="parent" |
| 177 | + app:layout_constraintStart_toStartOf="parent" |
| 178 | + app:layout_constraintTop_toTopOf="parent" |
| 179 | + app:srcCompat="@drawable/ic_zoom_out_map" /> |
| 180 | + </androidx.constraintlayout.widget.ConstraintLayout> |
| 181 | + |
| 182 | + <androidx.constraintlayout.widget.ConstraintLayout |
| 183 | + android:id="@+id/layout_person_current" |
| 184 | + android:layout_width="60dp" |
| 185 | + android:layout_height="60dp" |
157 | 186 | android:background="@drawable/background_button"
|
158 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end" |
159 |
| - app:layout_constraintBottom_toBottomOf="@id/guideline_bottom"> |
| 187 | + android:elevation="15dp" |
| 188 | + app:layout_constraintBottom_toBottomOf="@id/guideline_bottom" |
| 189 | + app:layout_constraintEnd_toEndOf="@id/guideline_end"> |
160 | 190 |
|
161 | 191 | <ImageView
|
162 | 192 | android:id="@+id/image_view_person_current_location"
|
163 | 193 | android:layout_width="30dp"
|
164 | 194 | android:layout_height="30dp"
|
165 |
| - android:elevation="15dp" |
166 |
| - app:layout_constraintStart_toStartOf="parent" |
| 195 | + android:onClick="@{() -> fragment.setPersonCurrent()}" |
| 196 | + app:layout_constraintBottom_toBottomOf="parent" |
167 | 197 | app:layout_constraintEnd_toEndOf="parent"
|
| 198 | + app:layout_constraintStart_toStartOf="parent" |
168 | 199 | app:layout_constraintTop_toTopOf="parent"
|
169 |
| - app:layout_constraintBottom_toBottomOf="parent" |
170 | 200 | app:srcCompat="@drawable/ic_location" />
|
171 | 201 | </androidx.constraintlayout.widget.ConstraintLayout>
|
172 | 202 |
|
|
0 commit comments