Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android hide listview scrollbar?

People also ask

How to hide scrollbar in ListView?

setHorizontalScrollBarEnabled(boolean) - disable \ enable horizontal scrollbars. Show activity on this post. This is the property you should use on your ListView . All the best.

How to disable scroll in ListView Android?

Show activity on this post. Try this: listViewObject. setTranscriptMode(0);


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

Hope, it helps you


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.


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

android:scrollbars="none"


Also make sure that fast scrolling disabled:

listView.setFastScrollEnabled(false);

Thanks, Rahul


Usually using both of them

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