1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
- <layout
3
- xmlns : android =" http://schemas.android.com/apk/res/android"
2
+ <layout xmlns : android =" http://schemas.android.com/apk/res/android"
4
3
xmlns : app =" http://schemas.android.com/apk/res-auto"
5
4
xmlns : tools =" http://schemas.android.com/tools" >
6
5
7
6
<data >
7
+
8
8
<import type =" com.stop.ui.util.DrawerStringUtils" />
9
9
10
+ <import type =" android.view.View" />
11
+
10
12
<variable
11
13
name =" routeItem"
12
14
type =" com.stop.model.route.RouteItem" />
37
39
android : layout_height =" wrap_content"
38
40
android : layout_marginStart =" 15dp"
39
41
android : layout_marginBottom =" 2dp"
42
+ android : gravity =" center_vertical"
40
43
android : minEms =" 4"
41
44
android : text =" @{routeItem.typeName}"
42
45
android : textColor =" @color/main_dark_grey"
43
46
android : textSize =" 15sp"
44
- android : gravity = " center_vertical "
47
+ app : layout_constraintBottom_toBottomOf = " parent "
45
48
app : layout_constraintStart_toEndOf =" @id/image_view_current_line"
46
- app : layout_constraintTop_toTopOf =" @id/image_view_current_line"
47
- app : layout_constraintBottom_toBottomOf =" @id/image_view_current_line"
49
+ app : layout_constraintTop_toTopOf =" parent"
48
50
tools : text =" 에버라인" />
49
51
50
52
<TextView
53
55
android : layout_height =" wrap_content"
54
56
android : layout_marginStart =" 15dp"
55
57
android : layout_marginBottom =" 2dp"
56
- android : text =" @{routeItem.name}"
57
58
android : ellipsize =" end"
59
+ android : gravity =" center_vertical"
58
60
android : lines =" 1"
59
61
android : maxEms =" 12"
62
+ android : text =" @{routeItem.name}"
60
63
android : textColor =" @color/main_dark_grey"
61
64
android : textSize =" 15sp"
62
- android : gravity = " center_vertical "
65
+ app : layout_constraintBottom_toBottomOf = " parent "
63
66
app : layout_constraintStart_toEndOf =" @id/text_view_type_name"
64
- app : layout_constraintTop_toTopOf =" @id/image_view_current_line"
65
- app : layout_constraintBottom_toBottomOf =" @id/image_view_current_line"
67
+ app : layout_constraintTop_toTopOf =" parent"
66
68
tools : text =" 미금역.청솔마을.2001.아울렛123123" />
67
69
68
- <TextView
69
- android : id =" @+id/text_view_information"
70
- android : layout_width =" wrap_content"
71
- android : layout_height =" wrap_content"
72
- android : layout_marginTop =" 5dp"
73
- android : layout_marginBottom =" 5dp"
74
- android : text =" @{DrawerStringUtils.getRouteItemInformationString(routeItem)}"
75
- android : textSize =" 13sp"
76
- android : textColor =" @color/main_light_grey"
77
- android : gravity =" center_vertical"
78
- app : layout_constraintStart_toStartOf =" @id/text_view_type_name"
79
- app : layout_constraintTop_toBottomOf =" @id/text_view_type_name"
80
- app : layout_constraintBottom_toBottomOf =" parent"
81
- tools : text =" 512m 16분" />
82
-
83
70
<View
84
71
android : id =" @+id/view_before_line"
85
72
android : layout_width =" 6dp"
86
73
android : layout_height =" 0dp"
87
- android : layout_marginBottom =" -5dp"
88
74
android : layout_marginStart =" -3dp"
89
75
android : background =" @{routeItem.beforeColor}"
76
+ app : layout_constraintBottom_toTopOf =" @id/view_image_icon_center"
90
77
app : layout_constraintStart_toStartOf =" @id/view_image_icon_center"
91
78
app : layout_constraintTop_toTopOf =" parent"
92
- app : layout_constraintBottom_toTopOf =" @id/image_view_current_line"
93
79
tools : background =" @color/main_yellow" />
94
80
95
81
<View
96
82
android : id =" @+id/view_current_line"
97
83
android : layout_width =" 6dp"
98
84
android : layout_height =" 0dp"
99
- android : layout_marginTop =" -5dp"
100
85
android : layout_marginStart =" -3dp"
101
86
android : background =" @{routeItem.currentColor}"
102
- app : layout_constraintStart_toStartOf =" @id/view_image_icon_center"
103
- app : layout_constraintTop_toBottomOf =" @id/image_view_current_line"
87
+ android : visibility =" @{routeItem.typeName == `하차` ? View.GONE : View.VISIBLE}"
104
88
app : layout_constraintBottom_toBottomOf =" parent"
89
+ app : layout_constraintStart_toStartOf =" @id/view_image_icon_center"
90
+ app : layout_constraintTop_toBottomOf =" @id/view_image_icon_center"
105
91
tools : background =" @color/main_light_grey" />
106
92
107
93
<View
112
98
app : layout_constraintBottom_toBottomOf =" @id/image_view_current_line"
113
99
app : layout_constraintEnd_toEndOf =" @id/image_view_current_line"
114
100
app : layout_constraintStart_toStartOf =" @id/image_view_current_line"
115
- app : layout_constraintTop_toTopOf =" @id/image_view_current_line" />
101
+ app : layout_constraintTop_toTopOf =" @id/image_view_current_line" />
116
102
117
103
<androidx .appcompat.widget.AppCompatImageView
118
104
android : id =" @+id/image_view_current_line"
119
105
android : layout_width =" wrap_content"
120
106
android : layout_height =" wrap_content"
121
- android : layout_marginTop =" 15dp"
107
+ android : layout_marginTop =" 8dp"
108
+ android : layout_marginBottom =" 8dp"
122
109
android : tint =" @{routeItem.currentColor}"
110
+ app : layout_constraintBottom_toBottomOf =" parent"
123
111
app : layout_constraintStart_toStartOf =" @id/guideline_start"
124
112
app : layout_constraintTop_toTopOf =" parent"
125
113
app : srcCompat =" @drawable/ic_circle"
129
117
android : layout_width =" 15dp"
130
118
android : layout_height =" 15dp"
131
119
android : contentDescription =" @string/route_type_image_content_description"
132
- app : layout_constraintStart_toStartOf =" @+id/image_view_current_line"
120
+ app : imageResource =" @{routeItem.mode}"
121
+ app : layout_constraintBottom_toBottomOf =" @+id/image_view_current_line"
133
122
app : layout_constraintEnd_toEndOf =" @+id/image_view_current_line"
123
+ app : layout_constraintStart_toStartOf =" @+id/image_view_current_line"
134
124
app : layout_constraintTop_toTopOf =" @+id/image_view_current_line"
135
- app : layout_constraintBottom_toBottomOf =" @+id/image_view_current_line"
136
- app : imageResource =" @{routeItem.mode}"
137
125
tools : src =" @drawable/ic_walk_white" />
138
126
139
127
<View
143
131
android : layout_marginStart =" 15dp"
144
132
android : layout_marginEnd =" 15dp"
145
133
android : background =" @color/main_lighter_grey"
146
- app : layout_constraintStart_toEndOf =" @id/view_before_line"
147
134
app : layout_constraintEnd_toEndOf =" parent"
135
+ app : layout_constraintStart_toEndOf =" @id/view_before_line"
148
136
app : layout_constraintTop_toTopOf =" parent" />
149
137
</androidx .constraintlayout.widget.ConstraintLayout>
150
138
</layout >
0 commit comments