Bimba.git

ref: 2dc257c17c5088dd00af6ab6c549b76a0b8bb617

app/src/main/res/layout/map_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
<?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/title"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_marginStart="8dp"
		android:layout_marginTop="48dp"
		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_toTopOf="parent"
		tool:text="Aleje Marcinkowskiego [AMAR01]" />

	<com.google.android.material.textview.MaterialTextView
		android:id="@+id/change_options"
		android:layout_width="0dp"
		android:layout_height="wrap_content"
		android:layout_margin="16dp"
		android:textAppearance="@style/TextAppearance.Material3.BodyMedium"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/title"
		tool:text="610 » Górczyn, 215 » Rondo Kaponiera, 392 » Słowiańska" />

	<Button
		android:id="@+id/departures_button"
		style="@style/Widget.Material3.Button.TextButton.Icon"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_margin="4dp"
		android:text="Show departures"
		app:icon="@drawable/departure"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/change_options" />

	<Button
		android:id="@+id/navigation_button"
		style="@style/Widget.Material3.Button.TextButton.Icon"
		android:layout_width="wrap_content"
		android:layout_height="wrap_content"
		android:layout_margin="4dp"
		android:text="Open in maps app"
		app:icon="@drawable/open_outside"
		app:layout_constraintEnd_toEndOf="parent"
		app:layout_constraintStart_toStartOf="parent"
		app:layout_constraintTop_toBottomOf="@+id/departures_button" />

	<!--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/title"
		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/title"
		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>