I have a gridview in my activity and I wanted to make its scrollbar always visible.
Anyone know how to do it?
Thankyou.
To make the scrollbar always visible in an Android view add the following property to the relevant container in the layout xml
android:scrollbarFadeDuration="0"
Refer this.
Specifically for Android 4.0.3
API level 15 you can use,
android:fadeScrollbars
It defines whether to fade out scrollbars when they are not in use. Must be a boolean value, either "true" or "false". Source.
Using code the View.setScrollbarFadingEnabled(boolean) is what you can use.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With