Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Always show scrollbar for ListView

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?

like image 617
Tima Avatar asked May 12 '11 13:05

Tima


2 Answers

In your xml set android:fadeScrollbars="false"

like image 106
Manivannan Avatar answered Sep 29 '22 06:09

Manivannan


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

like image 44
nicholas.hauschild Avatar answered Sep 29 '22 06:09

nicholas.hauschild