question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Slider] The label is scrolled when it's in the scroll view and LABEL_VISIBLE

See original GitHub issue

Description: This issue comes when the slider is placed inside ScrollView and labelBehavior is set as LABEL_VISIBLE. When the user scrolled down, the label is scrolled too.

WhatsApp Video 2022-07-27 at 1 07 47 PM

Expected behavior: The Expected behavior is the label is not scrolled and is still in the slider position

Android API version: Android 10 (API level 29) and Android 11 (API level 30)

Material Library version: Tested on 1.6.0 and 1.7.0-alpha03

Device: Tested on Google Pixel 3A (Emulator) and Xiaomi Redmi 10S

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
leticiarossicommented, Dec 2, 2022
1reaction
MirzaUkascommented, Sep 23, 2022

I have the same problem. Any updates?

Temporary solution, I just set the label visibility based on scrollChangedListener. The downside is sometimes the transition between labels shows up and disappear is not smooth

Something like this

binding.scrollView.apply {
            viewTreeObserver.addOnScrollChangedListener {
                if (scrollY == 0) {
                    binding.slider.labelBehavior = LABEL_VISIBLE
                } else {
                    binding.slider.labelBehavior = LABEL_WITHIN_BOUNDS
                }
            }
        }

Read more comments on GitHub >

github_iconTop Results From Across the Web

R shiny: how to stop sliderInput label click from causing scroll ...
To illustrate this, place a sliderInput further down on a page (e.g. after a large block of text or a chart, and then...
Read more >
ScrollView is not scrollable inside of RefreshView · Issue #5772
Seems like VerticalStackLayout grows infinitely inside of RefreshView, therefore you cannot scroll any content inside of RefreshView.
Read more >
UIStackView not laying out as expected in a UIScrollView
1. constraining the UIScrollView to its superview (top, height, leading and width) 2. add a UIView inside the scrollView label it Content View....
Read more >
How to Keep Row and Column Labels in View When Scrolling ...
This is Part 1 in a series of Tutorials focused on the commands of the VIEW Tab of the Ribbon in Excel 2007...
Read more >
Vertical Scroll on label | B4X Programming Forum
Hello, I am creating an app where I need a label with vertical scrolling so that when there is a lot of text,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found