|
206 | 206 | app:contentPadding="4dp" |
207 | 207 | app:cardCornerRadius="4dp" |
208 | 208 | app:cardBackgroundColor="@color/white" |
209 | | - android:visibility="gone" |
210 | 209 | app:cardElevation="2dp"> |
211 | 210 |
|
212 | | - <androidx.constraintlayout.widget.ConstraintLayout |
| 211 | + <LinearLayout |
213 | 212 | android:id="@+id/expand_menu_layout" |
214 | 213 | android:layout_width="match_parent" |
215 | | - android:layout_height="wrap_content"> |
216 | | - |
217 | | - <androidx.constraintlayout.widget.ConstraintLayout |
218 | | - android:layout_width="match_parent" |
219 | | - android:layout_height="wrap_content" |
220 | | - app:layout_constraintTop_toTopOf="parent" |
221 | | - app:layout_constraintStart_toStartOf="parent"> |
| 214 | + android:layout_height="wrap_content" |
| 215 | + android:orientation="vertical"> |
222 | 216 |
|
223 | | - <com.google.android.material.textview.MaterialTextView |
224 | | - style="@style/TextAppearance.Material3.LabelSmall" |
| 217 | + <TextView |
| 218 | + android:id="@+id/speed_title" |
225 | 219 | android:layout_width="match_parent" |
226 | 220 | android:layout_height="wrap_content" |
227 | 221 | android:text="@string/rocker_speed" |
228 | | - android:textSize="8sp" |
229 | | - android:layout_weight="1" |
230 | | - android:maxLines="1" |
231 | | - android:gravity="center|start" |
232 | | - app:layout_constraintTop_toTopOf="parent" |
233 | | - app:layout_constraintStart_toStartOf="parent" |
234 | | - tools:ignore="SmallSp" /> |
| 222 | + android:textSize="14sp" |
| 223 | + android:gravity="center" |
| 224 | + android:textColor="#373737" /> |
235 | 225 |
|
236 | | - <com.google.android.material.textview.MaterialTextView |
237 | | - android:id="@+id/speed" |
238 | | - style="@style/TextAppearance.Material3.LabelSmall" |
| 226 | + <LinearLayout |
239 | 227 | android:layout_width="match_parent" |
240 | 228 | android:layout_height="wrap_content" |
| 229 | + android:gravity="center_vertical" |
| 230 | + android:orientation="horizontal"> |
| 231 | + <Button |
| 232 | + android:id="@+id/speed_down" |
| 233 | + android:layout_width="48dp" |
| 234 | + android:layout_height="48dp" |
| 235 | + android:padding="0dp" |
| 236 | + android:text="−" |
| 237 | + android:contentDescription="@string/overlay_speed_decrease" /> |
| 238 | + <TextView |
| 239 | + android:id="@+id/speed" |
| 240 | + android:layout_width="0dp" |
| 241 | + android:layout_height="wrap_content" |
241 | 242 | android:text="@string/default_speed" |
242 | 243 | android:layout_weight="1" |
243 | | - android:textSize="8sp" |
244 | | - android:gravity="center|end" |
245 | | - android:maxLines="1" |
246 | | - app:layout_constraintTop_toTopOf="parent" |
247 | | - app:layout_constraintEnd_toEndOf="parent" |
248 | | - tools:ignore="SmallSp" /> |
| 244 | + android:textSize="12sp" |
| 245 | + android:gravity="center" |
| 246 | + android:textColor="#373737" /> |
| 247 | + <Button |
| 248 | + android:id="@+id/speed_up" |
| 249 | + android:layout_width="48dp" |
| 250 | + android:layout_height="48dp" |
| 251 | + android:padding="0dp" |
| 252 | + android:text="+" |
| 253 | + android:contentDescription="@string/overlay_speed_increase" /> |
| 254 | + </LinearLayout> |
249 | 255 |
|
250 | 256 | <com.google.android.material.slider.Slider |
251 | 257 | android:id="@+id/speed_slider" |
252 | 258 | android:layout_width="match_parent" |
253 | 259 | android:layout_height="wrap_content" |
254 | | - android:stepSize="5.0" |
| 260 | + android:contentDescription="@string/rocker_speed" |
255 | 261 | android:valueFrom="0.0" |
256 | 262 | android:valueTo="50.0" |
257 | 263 | app:tickVisible="false" |
258 | | - app:thumbElevation="2dp" |
259 | | - android:padding="0dp" |
260 | | - app:thumbHeight="8dp" |
261 | | - app:thumbRadius="4dp" |
262 | | - app:trackHeight="4dp" |
263 | | - app:layout_constraintBottom_toBottomOf="parent" |
264 | | - app:layout_constraintStart_toStartOf="parent" /> |
265 | | - |
266 | | - <com.google.android.material.divider.MaterialDivider |
267 | | - android:id="@+id/divider" |
268 | | - android:layout_width="match_parent" |
269 | | - android:layout_height="wrap_content" |
270 | | - android:layout_marginTop="24dp" |
271 | | - app:layout_constraintTop_toBottomOf="@id/speed" |
272 | | - app:layout_constraintStart_toStartOf="parent" /> |
273 | | - |
274 | | - </androidx.constraintlayout.widget.ConstraintLayout> |
275 | | - |
276 | | - |
277 | | - </androidx.constraintlayout.widget.ConstraintLayout> |
| 264 | + app:trackHeight="4dp" /> |
| 265 | + </LinearLayout> |
278 | 266 | </androidx.cardview.widget.CardView> |
279 | 267 |
|
280 | 268 | </LinearLayout> |
|
0 commit comments