|
5 | 5 | xmlns:tools="http://schemas.android.com/tools">
|
6 | 6 |
|
7 | 7 | <data>
|
8 |
| - <import type="com.stop.ui.util.DrawerStringUtils" /> |
9 |
| - |
10 | 8 | <variable
|
11 | 9 | name="routeItem"
|
12 | 10 | type="com.stop.model.route.RouteItem" />
|
13 | 11 | </data>
|
14 | 12 |
|
15 | 13 | <androidx.constraintlayout.widget.ConstraintLayout
|
16 | 14 | android:layout_width="match_parent"
|
17 |
| - android:layout_height="100dp" |
| 15 | + android:layout_height="60dp" |
18 | 16 | android:background="@color/white">
|
19 | 17 |
|
20 | 18 | <androidx.constraintlayout.widget.Guideline
|
|
32 | 30 | app:layout_constraintGuide_end="30dp" />
|
33 | 31 |
|
34 | 32 | <TextView
|
35 |
| - android:id="@+id/text_view_name" |
| 33 | + android:id="@+id/text_view_start" |
36 | 34 | android:layout_width="wrap_content"
|
37 | 35 | android:layout_height="wrap_content"
|
38 | 36 | android:layout_marginStart="15dp"
|
39 |
| - android:text="@{routeItem.name}" |
40 |
| - android:textColor="@color/main_dark_grey" |
41 |
| - android:textSize="15sp" |
| 37 | + android:text="@string/end" |
| 38 | + android:textColor="@color/main_light_grey" |
| 39 | + android:textSize="12sp" |
42 | 40 | android:gravity="center_vertical"
|
43 | 41 | app:layout_constraintStart_toEndOf="@id/image_view_current_line"
|
44 | 42 | app:layout_constraintTop_toTopOf="@id/image_view_current_line"
|
45 | 43 | app:layout_constraintBottom_toBottomOf="@id/image_view_current_line"
|
46 |
| - tools:text="이엔씨드림타워3차" /> |
47 |
| - |
48 |
| - <TextView |
49 |
| - android:id="@+id/text_view_information" |
50 |
| - android:layout_width="wrap_content" |
51 |
| - android:layout_height="wrap_content" |
52 |
| - android:layout_marginTop="5dp" |
53 |
| - android:text="@{DrawerStringUtils.getRouteItemInformationString(routeItem)}" |
54 |
| - android:textSize="13sp" |
55 |
| - android:textColor="@color/main_light_grey" |
56 |
| - android:gravity="center_vertical" |
57 |
| - app:layout_constraintStart_toStartOf="@id/text_view_name" |
58 |
| - app:layout_constraintTop_toBottomOf="@id/text_view_name" |
59 |
| - tools:text="512m 16분"/> |
| 44 | + tools:text="도착지" /> |
60 | 45 |
|
61 | 46 | <TextView
|
62 |
| - android:id="@+id/text_view_last_time_1" |
63 |
| - android:layout_width="wrap_content" |
64 |
| - android:layout_height="wrap_content" |
65 |
| - android:layout_marginEnd="5dp" |
66 |
| - android:text="@{routeItem.lastTime != null ? @string/last_time : null}" |
67 |
| - android:textSize="12sp" |
68 |
| - android:textColor="@color/main_light_grey" |
69 |
| - android:gravity="center_vertical" |
70 |
| - app:layout_constraintEnd_toStartOf="@id/text_view_last_time_2" |
71 |
| - app:layout_constraintTop_toTopOf="@id/text_view_last_time_2" |
72 |
| - app:layout_constraintBottom_toBottomOf="@id/text_view_last_time_2" |
73 |
| - tools:text="현재 막차"/> |
74 |
| - |
75 |
| - <TextView |
76 |
| - android:id="@+id/text_view_last_time_2" |
| 47 | + android:id="@+id/text_view_name" |
77 | 48 | android:layout_width="wrap_content"
|
78 | 49 | android:layout_height="wrap_content"
|
79 |
| - android:layout_marginBottom="15dp" |
80 |
| - android:text="@{routeItem.lastTime}" |
81 |
| - android:textSize="15sp" |
| 50 | + android:layout_marginStart="10dp" |
| 51 | + android:text="@{routeItem.name}" |
82 | 52 | android:textColor="@color/main_dark_grey"
|
| 53 | + android:textSize="15sp" |
83 | 54 | android:gravity="center_vertical"
|
84 |
| - app:layout_constraintEnd_toEndOf="@id/guideline_end" |
85 |
| - app:layout_constraintBottom_toBottomOf="parent" |
86 |
| - tools:text="23:17:50"/> |
| 55 | + app:layout_constraintStart_toEndOf="@id/text_view_start" |
| 56 | + app:layout_constraintTop_toTopOf="@id/image_view_current_line" |
| 57 | + app:layout_constraintBottom_toBottomOf="@id/image_view_current_line" |
| 58 | + tools:text="Naver1784" /> |
87 | 59 |
|
88 | 60 | <View
|
89 | 61 | android:id="@+id/view_before_line"
|
|
102 | 74 | android:layout_height="wrap_content"
|
103 | 75 | android:layout_marginStart="18dp"
|
104 | 76 | android:layout_marginTop="15dp"
|
105 |
| - android:tint="@{routeItem.currentColor}" |
| 77 | + android:tint="@{routeItem.beforeColor}" |
106 | 78 | app:layout_constraintStart_toStartOf="parent"
|
107 | 79 | app:layout_constraintTop_toTopOf="parent"
|
108 | 80 | app:srcCompat="@drawable/ic_circle"
|
109 |
| - tools:tint="@color/main_light_grey" /> |
| 81 | + tools:tint="@color/main_yellow" /> |
110 | 82 |
|
111 | 83 | <ImageView
|
112 | 84 | android:layout_width="15dp"
|
113 | 85 | android:layout_height="15dp"
|
| 86 | + android:background="@drawable/ic_star_white" |
114 | 87 | app:layout_constraintStart_toStartOf="@+id/image_view_current_line"
|
115 | 88 | app:layout_constraintEnd_toEndOf="@+id/image_view_current_line"
|
116 | 89 | app:layout_constraintTop_toTopOf="@+id/image_view_current_line"
|
117 |
| - app:layout_constraintBottom_toBottomOf="@+id/image_view_current_line" |
118 |
| - app:imageResource="@{routeItem.mode}" |
119 |
| - tools:src="@drawable/ic_walk_white" /> |
| 90 | + app:layout_constraintBottom_toBottomOf="@+id/image_view_current_line" /> |
120 | 91 |
|
121 | 92 | <View
|
122 | 93 | android:id="@+id/view_line"
|
|
0 commit comments