Home » Android » android – Always show scrollbar for ListView

android – Always show scrollbar for ListView

Posted by: admin April 23, 2020 Leave a comment

Questions:

There are ListViews in some activities of my app.

Since Android 2.1 or 2.2 scrollbars will be only displayed if the user scroll the list or for very short time at the beginning. Then scrollbars will disappear.

Is it possible somehow to show them always as for example in Android 1.5?

How to&Answers:

In your xml set android:fadeScrollbars="false"

Answer:

You can accomplish this with the method setScrollbarFadingEnabled() on the View object.