-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
[Slider] Always visible label still shows up when hiding its fragment #4064
Comments
Yes, I tried the latest snapshot version and when I move to another tab, all the slider labels from the previous tab are visible. |
Hmm... Is it impossible to provide the minimum sample app? I don't understand this issue completely. In order to understand this issue, I created a sample app (which uses a fragment) and the simplified version (which doesn't use a fragment). |
@manabu-nakamura I created a sample app with scrolling and tab change. |
1.13.0-alpha06 seems to cause this issue, but 1.13.0-SNAPSHOT doesn't seem to cause this issue (https://github.com/material-components/material-components-android/blob/master/docs/using-snapshot-version.md). Try it! |
I can confirm that But even with the snapshot version the issue is still present in my production app. For now we can close this issue, I have no idea how to reproduce it in the sample app. |
Enjoy debugging! |
Description
When using version
1.11.0
:app:labelBehavior="visible"
presents a bug on scroll, the label does not follow the new position of the slider. This bug was documented here [Slider] The label is scrolled when it's in the scroll view and LABEL_VISIBLE #2869When using version
1.12.0-alpha03
:Expected behavior: When hiding a fragment also the slider labels should be hidden.
Source code:
I know that instead of adding all the fragments and hiding/showing them maybe I could use
replace()
, but in version1.11.0
when hiding a fragment even the label is hidden as expected, so a bug was introduced in the alpha releases.Minimal sample app repro: Please consider attaching a minimal sample app that reproduces the issue. This will help narrow down the conditions required for reproducing the issue, and it will speed up the bug fix process. You may attach a zip file of the sample app or link to a GitHub repo that contains the sample app.
Android API version: 34
Material Library version:
1.12.0-alpha03
Device: Xiaomi Pad 6 and Samsung Galaxy tabS5e.
Edit: I tried also the latest SNAPSHOT version
1.12.0-SNAPSHOT
and can confirm that the issues is still present.The text was updated successfully, but these errors were encountered: