How to make the grid scroll grid always visible and Android 4.0.3

I have a gridview in my activity, and I wanted to keep its scroll bar always visible.

Does anyone know how to do this?

Thankyou.

+5
source share
1 answer

To ensure that the scroll bar always appears in the Android view, add the following property to the appropriate container in the xml layout

 android:scrollbarFadeDuration="0"

Refer this .

In particular, for API level Android 4.0.3API 15 you can use

   android:fadeScrollbars

It determines whether scrollbars should disappear when not in use. Must be a boolean, either "true" or "false". Source .

View.setScrollbarFadingEnabled(boolean) - , .

+8

All Articles