开发者

How to make the scrollbars of listview visible all the time

I want my scrollbars to be visible all the time, well only the vertical scroll bar.

I google this and I found this tag android:scrollbarFadeDuration="0" 开发者_如何学运维but this works fine when you have a scroll view but when I add this as a tag in my ListView then eclipse it telling me that this tag doesn't exist in the ListView-component.

Is there any way to make the scroll bars of the ListView widget to be visible all the time ?

Edit1: these are all my tags and values of the listview

android:drawSelectorOnTop="false" android:layout_height="fill_parent"
    android:drawingCacheQuality="high" android:layout_width="fill_parent"
    android:id="@android:id/list" android:clickable="false"
    android:scrollbarAlwaysDrawVerticalTrack="true" android:fastScrollEnabled="true" android:scrollbars="vertical

The scroll is shown but only when I am scrolling and after few seconds it is gone


Set android:fadeScrollbars="false"


Will enabling android:scrollbarAlwaysDrawVerticalTrack for the ListView do the trick?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜