Bimba.git

ref: 3ee6d240b0cbb515f01ab0c00b735a66c2eee043

app/src/main/res/layout/departure_bottom_sheet.xml


  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	xmlns:tool="http://schemas.android.com/tools"
	android:layout_width="match_parent"
	android:layout_height="wrap_content"
	android:paddingBottom="16dp">

	<com.google.android.material.bottomsheet.BottomSheetDragHandleView
		android:id="@+id/drag_handle"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		app:layout_constraintTop_toTopOf="parent" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/time"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="48dp"
		android:textAppearance="@style/TextAppearance.Material3.DisplaySmall"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="parent"
		tool:text="at 12:10:30" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/offset"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="4dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		android:visibility="gone"
		app:layout_constraintBaseline_toBaselineOf="@+id/time"
		app:layout_constraintStart_toEndOf="@+id/time"
		tool:text="(+2 mins)" />

	<ImageView
		android:id="@+id/rt_icon"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:layout_marginStart="16dp"
		android:contentDescription="departure is realtime"
		app:layout_constraintBottom_toBottomOf="@+id/time"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toTopOf="@+id/time"
		app:srcCompat="@drawable/radar" />

	<ImageView
		android:id="@+id/wheelchair_icon"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:layout_marginStart="8dp"
		android:contentDescription="vehicle is wheelchair accessible"
		app:layout_constraintStart_toEndOf="@id/rt_icon"
		app:layout_constraintTop_toTopOf="@+id/rt_icon"
		app:srcCompat="@drawable/wheelchair" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/line"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAlignment="center"
		android:textAppearance="@style/TextAppearance.Material3.HeadlineSmall"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@id/time"
		tool:text="Metropolitan ยป Aleje Marcinkowskiego" />

	<Button
		android:id="@+id/map_button"
		style="@style/Widget.Material3.Button.TextButton.Icon"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_margin="8dp"
		android:text="Show on map"
		app:icon="@drawable/map_black"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/line" />

	<!--suppress AndroidUnknownAttribute -->
	<ImageView
		android:id="@+id/boarding_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/boarding_text"
		app:layout_constraintEnd_toStartOf="@+id/boarding_text"
		app:layout_constraintTop_toTopOf="@+id/boarding_text"
		app:srcCompat="@drawable/transfer" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/boarding_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintEnd_toEndOf="@id/middle"
		app:layout_constraintTop_toBottomOf="@id/map_button"
		tool:text="on demand" />

	<!--suppress AndroidUnknownAttribute -->
	<ImageView
		android:id="@+id/speed_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/speed_text"
		app:layout_constraintEnd_toStartOf="@+id/speed_text"
		app:layout_constraintTop_toTopOf="@+id/speed_text"
		app:srcCompat="@drawable/speed" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/speed_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintEnd_toStartOf="@+id/middle"
		app:layout_constraintTop_toBottomOf="@id/boarding_text"
		tool:text="10 Vl" />

	<!--suppress AndroidUnknownAttribute -->
	<ImageView
		android:id="@+id/congestion_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginStart="8dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/congestion_text"
		app:layout_constraintStart_toStartOf="@+id/middle"
		app:layout_constraintTop_toTopOf="@+id/congestion_text"
		app:srcCompat="@drawable/traffic" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/congestion_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toEndOf="@id/congestion_icon"
		app:layout_constraintTop_toBottomOf="@id/map_button"
		tool:text="smooth traffic" />

	<!--suppress AndroidUnknownAttribute -->
	<ImageView
		android:id="@+id/occupancy_icon"
		android:layout_width="16dp"
		android:layout_height="16dp"
		android:layout_marginStart="8dp"
		android:layout_marginEnd="8dp"
		android:importantForAccessibility="no"
		app:layout_constraintBottom_toBottomOf="@+id/occupancy_text"
		app:layout_constraintStart_toStartOf="@+id/middle"
		app:layout_constraintTop_toTopOf="@+id/occupancy_text"
		app:srcCompat="@drawable/crowd" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/occupancy_text"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="8dp"
		android:layout_marginEnd="8dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyLarge"
		app:layout_constraintStart_toEndOf="@id/occupancy_icon"
		app:layout_constraintTop_toBottomOf="@id/congestion_text"
		tool:text="empty vehicle" />

	<androidx.constraintlayout.widget.Guideline
		android:id="@+id/middle"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:orientation="vertical"
		app:layout_constraintGuide_percent=".5" />

	<androidx.constraintlayout.helper.widget.Flow
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="16dp"
		android:layout_marginEnd="8dp"
		app:constraint_referenced_ids="ac,bike,voice,ticket,usb"
		app:flow_horizontalGap="4dp"
		app:flow_horizontalStyle="packed"
		app:flow_verticalGap="4dp"
		app:flow_wrapMode="chain"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/occupancy_text" />

	<ImageView
		android:id="@+id/ac"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="air condition"
		app:srcCompat="@drawable/ac"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/bike"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="bicycles allowed"
		app:srcCompat="@drawable/bike"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/voice"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="voice announcements"
		app:srcCompat="@drawable/voice"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/ticket"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="tickets sold"
		app:srcCompat="@drawable/ticket"
		tool:ignore="MissingConstraints" />

	<ImageView
		android:id="@+id/usb"
		android:layout_width="24dp"
		android:layout_height="24dp"
		android:contentDescription="USB charging"
		app:srcCompat="@drawable/usb"
		tool:ignore="MissingConstraints" />
</androidx.constraintlayout.widget.ConstraintLayout>