Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RangeSlider] Label got stuck when used in BottomSheet #3124

Closed
mhettig opened this issue Dec 1, 2022 · 1 comment
Closed

[RangeSlider] Label got stuck when used in BottomSheet #3124

mhettig opened this issue Dec 1, 2022 · 1 comment

Comments

@mhettig
Copy link

mhettig commented Dec 1, 2022

Description:
When adding a RangeSlider to a BottomSheet with the labels always visible (= app:labelBehavior="visible") the labels will not move together with the slider when the bottom sheet is dragged. They get stuck:

Screenrecorder-2022-12-01-20-54-54-542.mp4

Expected behavior:
Labels stay fixed at the top of the RangeSlider and will be in sync with the bottom sheet movement.

Source code:
To provide a simple and reproducible example I used the Catalog App from this repository.

There I added the following code snippet to cat_bottomsheet_fragment.xml. It was included at the bottom of the BottomSheet so below the last MaterialSwitch.

<com.google.android.material.slider.RangeSlider
  android:layout_width="match_parent"
  android:layout_height="wrap_content"
  android:layout_below="@id/cat_bottomsheet_enabled_switch"
  app:labelBehavior="visible" />

Android API version: 33

Material Library version: 1.7.0 - Bug is also visible with version 1.6.0 when label behavior "visible" was firstly introduced

Device: Xiaomi Mi 11 Ultra (with xiaomi.eu firmware)

@leticiarossi
Copy link
Contributor

Thank you for reporting, this looks like the same issue as #2869 so will add this to there and close it here as duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants