|
9 | 9 | name="viewModel"
|
10 | 10 | type="com.stop.ui.alarmsetting.AlarmSettingViewModel" />
|
11 | 11 |
|
| 12 | + <variable |
| 13 | + name="fragment" |
| 14 | + type="com.stop.ui.alarmstart.AlarmStartFragment" /> |
| 15 | + |
12 | 16 | </data>
|
13 | 17 |
|
14 | 18 | <androidx.constraintlayout.widget.ConstraintLayout
|
|
38 | 42 | android:orientation="horizontal"
|
39 | 43 | app:layout_constraintGuide_begin="35dp" />
|
40 | 44 |
|
41 |
| - <TextView |
42 |
| - android:id="@+id/text_view_start_position" |
| 45 | + <View |
| 46 | + android:id="@+id/view_top" |
43 | 47 | android:layout_width="0dp"
|
44 |
| - android:layout_height="wrap_content" |
45 |
| - android:background="@drawable/background_gray_d9_8" |
46 |
| - android:ellipsize="end" |
47 |
| - android:maxLines="1" |
48 |
| - android:padding="8dp" |
49 |
| - android:text="@{@string/start_position_text(viewModel.alarmItem.startPosition)}" |
50 |
| - android:textColor="@color/black" |
51 |
| - android:textSize="24sp" |
52 |
| - android:textStyle="bold" |
| 48 | + android:layout_height="120dp" |
| 49 | + android:background="@color/main_dark_grey" |
| 50 | + app:layout_constraintEnd_toEndOf="parent" |
| 51 | + app:layout_constraintStart_toStartOf="parent" |
| 52 | + app:layout_constraintTop_toTopOf="parent" /> |
| 53 | + |
| 54 | + <View |
| 55 | + android:id="@+id/view_search" |
| 56 | + android:layout_width="0dp" |
| 57 | + android:layout_height="50dp" |
| 58 | + android:layout_marginBottom="15dp" |
| 59 | + android:background="@drawable/background_search" |
| 60 | + app:layout_constraintBottom_toBottomOf="@id/view_top" |
53 | 61 | app:layout_constraintEnd_toEndOf="@id/guide_line_end"
|
54 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
55 |
| - app:layout_constraintTop_toTopOf="@id/guideline_top" /> |
| 62 | + app:layout_constraintStart_toStartOf="@id/guide_line_start" /> |
56 | 63 |
|
57 | 64 | <TextView
|
58 |
| - android:id="@+id/text_view_end_position" |
| 65 | + android:id="@+id/text_view_start_position" |
59 | 66 | android:layout_width="0dp"
|
60 |
| - android:layout_height="wrap_content" |
61 |
| - android:layout_marginTop="8dp" |
62 |
| - android:background="@drawable/background_gray_d9_8" |
| 67 | + android:layout_height="0dp" |
| 68 | + android:layout_marginStart="10dp" |
| 69 | + android:layout_marginEnd="5dp" |
63 | 70 | android:ellipsize="end"
|
| 71 | + android:gravity="center" |
64 | 72 | android:maxLines="1"
|
65 |
| - android:padding="8dp" |
66 |
| - android:text="@{@string/end_position_text(viewModel.alarmItem.endPosition)}" |
67 |
| - android:textColor="@color/black" |
68 |
| - android:textSize="24sp" |
69 |
| - android:textStyle="bold" |
70 |
| - app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
71 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
72 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_start_position" /> |
| 73 | + android:text="@{viewModel.alarmItem.startPosition}" |
| 74 | + android:textColor="@color/main_light_grey" |
| 75 | + android:textSize="17sp" |
| 76 | + app:layout_constraintBottom_toBottomOf="@id/view_search" |
| 77 | + app:layout_constraintEnd_toStartOf="@id/image_view_arrow_right" |
| 78 | + app:layout_constraintStart_toStartOf="@id/view_search" |
| 79 | + app:layout_constraintTop_toTopOf="@id/view_search" |
| 80 | + tools:text="출발지" /> |
| 81 | + |
| 82 | + <ImageView |
| 83 | + android:id="@+id/image_view_arrow_right" |
| 84 | + android:layout_width="wrap_content" |
| 85 | + android:layout_height="wrap_content" |
| 86 | + app:layout_constraintBottom_toBottomOf="@id/view_search" |
| 87 | + app:layout_constraintEnd_toEndOf="@id/view_search" |
| 88 | + app:layout_constraintStart_toStartOf="@id/view_search" |
| 89 | + app:layout_constraintTop_toTopOf="@id/view_search" |
| 90 | + app:srcCompat="@drawable/ic_arrow_right" /> |
73 | 91 |
|
74 | 92 | <TextView
|
75 |
| - android:id="@+id/text_view_last_time" |
| 93 | + android:id="@+id/text_view_end_position" |
76 | 94 | android:layout_width="0dp"
|
77 |
| - android:layout_height="wrap_content" |
78 |
| - android:layout_marginTop="8dp" |
79 |
| - android:background="@drawable/background_gray_d9_8" |
| 95 | + android:layout_height="0dp" |
| 96 | + android:layout_marginStart="5dp" |
| 97 | + android:layout_marginEnd="10dp" |
80 | 98 | android:ellipsize="end"
|
| 99 | + android:gravity="center" |
81 | 100 | android:maxLines="1"
|
82 |
| - android:padding="8dp" |
83 |
| - android:text="@{@string/last_time_text(viewModel.alarmItem.lastTime)}" |
84 |
| - android:textColor="@color/black" |
85 |
| - android:textSize="24sp" |
86 |
| - android:textStyle="bold" |
87 |
| - app:layout_constraintEnd_toEndOf="@id/guide_line_end" |
88 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
89 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_end_position" /> |
| 101 | + android:text="@{viewModel.alarmItem.endPosition}" |
| 102 | + android:textColor="@color/main_light_grey" |
| 103 | + android:textSize="17sp" |
| 104 | + app:layout_constraintBottom_toBottomOf="@id/view_search" |
| 105 | + app:layout_constraintEnd_toEndOf="@id/view_search" |
| 106 | + app:layout_constraintStart_toEndOf="@id/image_view_arrow_right" |
| 107 | + app:layout_constraintTop_toTopOf="@id/view_search" |
| 108 | + tools:text="도착지" /> |
90 | 109 |
|
91 | 110 | <TextView
|
92 |
| - android:id="@+id/text_view_walk_time" |
93 |
| - android:layout_width="0dp" |
| 111 | + android:id="@+id/text_view_left_time" |
| 112 | + android:layout_width="wrap_content" |
94 | 113 | android:layout_height="wrap_content"
|
95 |
| - android:layout_marginTop="8dp" |
96 |
| - android:background="@drawable/background_gray_d9_8" |
97 |
| - android:ellipsize="end" |
98 |
| - android:maxLines="1" |
99 |
| - android:padding="8dp" |
100 |
| - android:text="@{@string/walk_time_text(viewModel.alarmItem.walkTime)}" |
101 |
| - android:textColor="@color/black" |
102 |
| - android:textSize="24sp" |
| 114 | + android:text="@{viewModel.lastTimeCountDown}" |
| 115 | + android:textColor="@color/main_dark_grey" |
| 116 | + android:textSize="60sp" |
103 | 117 | android:textStyle="bold"
|
| 118 | + app:layout_constraintBottom_toTopOf="@id/text_view_mission_start" |
104 | 119 | app:layout_constraintEnd_toEndOf="@id/guide_line_end"
|
105 | 120 | app:layout_constraintStart_toStartOf="@id/guide_line_start"
|
106 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_last_time" /> |
| 121 | + app:layout_constraintTop_toBottomOf="@id/view_top" |
| 122 | + tools:text="23:23:23" /> |
107 | 123 |
|
108 | 124 | <TextView
|
109 | 125 | android:id="@+id/text_view_mission_start"
|
110 |
| - android:layout_width="180dp" |
111 |
| - android:layout_height="180dp" |
112 |
| - android:background="@drawable/selector_mission_start_button" |
| 126 | + android:layout_width="0dp" |
| 127 | + android:layout_height="wrap_content" |
| 128 | + android:layout_marginBottom="12dp" |
| 129 | + android:background="@color/main_dark_grey" |
113 | 130 | android:gravity="center"
|
| 131 | + android:onClick="@{() -> fragment.clickMissionStart()}" |
| 132 | + android:padding="10dp" |
114 | 133 | android:text="@string/mission_start"
|
115 |
| - android:textColor="@color/black" |
116 |
| - android:textSize="36sp" |
| 134 | + android:textColor="@color/white" |
| 135 | + android:textSize="24sp" |
117 | 136 | android:textStyle="bold"
|
118 | 137 | app:layout_constraintBottom_toTopOf="@id/button_alarm_turn_off"
|
119 | 138 | app:layout_constraintEnd_toEndOf="@id/guide_line_end"
|
120 |
| - app:layout_constraintStart_toStartOf="@id/guide_line_start" |
121 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_walk_time" /> |
| 139 | + app:layout_constraintStart_toStartOf="@id/guide_line_start" /> |
122 | 140 |
|
123 |
| - <com.google.android.material.button.MaterialButton |
| 141 | + <TextView |
124 | 142 | android:id="@+id/button_alarm_turn_off"
|
125 |
| - style="@style/Widget.Material3.Button.OutlinedButton" |
126 | 143 | android:layout_width="0dp"
|
127 | 144 | android:layout_height="wrap_content"
|
128 | 145 | android:layout_marginBottom="24dp"
|
| 146 | + android:background="@color/red" |
| 147 | + android:gravity="center" |
| 148 | + android:onClick="@{()->fragment.clickAlarmTurnOff()}" |
| 149 | + android:padding="10dp" |
129 | 150 | android:text="@string/alarm_turn_off_text"
|
130 |
| - android:textColor="@color/black" |
| 151 | + android:textColor="@color/white" |
131 | 152 | android:textSize="24sp"
|
132 | 153 | android:textStyle="bold"
|
133 | 154 | app:layout_constraintBottom_toBottomOf="parent"
|
|
0 commit comments