I have a gridview in my activity and I wanted to make its scrollbar always visible.
Anyone know how to do it?
Thankyou.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To make the scrollbar always visible in an Android view add the following property to the relevant container in the layout xml
Refer this.
Specifically for
Android 4.0.3API level 15 you can use,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.