Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a way to show the scrollbar of ListView all the time?

Is there a way to always show the vertical scroll bar of the ListView?

like image 627
Jawwad Avatar asked Sep 30 '10 05:09

Jawwad


People also ask

How do I make my scrollbar visible all the time?

Make sure overflow is set to "scroll" not "auto." With that said, in OS X Lion, overflow set to "scroll" behaves more like auto in that scrollbars will still only show when being used.

Is List view scrollable by default?

ListView itself is scrollable.

Why is the scroll bar always visible?

By default, a scroll bar will appear when the content is too long. Page authors can override this in a number of ways, for example: overflow-y: hidden => cut off content that is too long. overflow-y: scroll => always show a scroll bar even when it's not needed.


2 Answers

Sure, it is possible. Try View.setScrollbarFadingEnabled.

like image 136
Ondra Zahradnik Avatar answered Nov 16 '22 02:11

Ondra Zahradnik


There is actually a very easy way to do this using following property in xml file.

android:fadeScrollbars="false"

This will solve the problem.

like image 22
user1031746 Avatar answered Nov 16 '22 03:11

user1031746