The scrollbar in my scrollview is only visible when I start scrolling. How can I always show it?
When Settings opens, click “Accessibility” in the sidebar. In Accessibility, select “Visual Effects.” In Visual Effects, flip the switch beside “Always Show Scrollbars” to the “On” position. And that's it!
Go to Settings / Ease of Access / Display and turn off Automatically hide scroll bars in Windows. Scroll bars will then always be full-size in many (but not all) places.
As of now the best way is to use android:fadeScrollbars="false"
in xml which is equivalent to ScrollView.setScrollbarFadingEnabled(false);
in java code.
Setting the android:scrollbarFadeDuration="0"
will do the trick.
There are 4 ways:
ScrollView.setScrollbarFadingEnabled(false);
android:fadeScrollbars="false"
myView.setScrollBarFadeDuration(0)
android:scrollbarFadeDuration="0"
Simple as that!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With