Android hide listview scrollbar?

AndroidListviewScrollbar

Android Problem Overview


Is there a way to hide scrollbar in ListView. I know it's possible for ScrollView but can't find a way for ListView scrollbar. Any ideas?

Android Solutions


Solution 1 - Android

Try to type this in layout xml file

android:scrollbars="none"

Tutorial is here.

http://developer.android.com/reference/android/view/View.html#attr_android:scrollbars

Solution 2 - Android

If you want to disable \ enable scrollbars programmatically you need use

View.setVericalScrollbarEnabled(boolean) - disable \ enable vertical scrollbars.

View.setHorizontalScrollBarEnabled(boolean) - disable \ enable horizontal scrollbars.

Solution 3 - Android

This is the property you should use on your ListView. All the best.

android:scrollbars="none"

Solution 4 - Android

Also make sure that fast scrolling disabled:

listView.setFastScrollEnabled(false);

Thanks, Rahul

Solution 5 - Android

Usually using both of them

android:divider="@null"
android:dividerHeight="0dp"

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionAndroid-DroidView Question on Stackoverflow
Solution 1 - AndroidihrupinView Answer on Stackoverflow
Solution 2 - AndroidSergey ShustikovView Answer on Stackoverflow
Solution 3 - AndroidSoumen DasView Answer on Stackoverflow
Solution 4 - AndroidRahulView Answer on Stackoverflow
Solution 5 - AndroidSamirView Answer on Stackoverflow