Hide Scrollbar of HorizontalScrollView

Ostkontentitan picture Ostkontentitan · Sep 4, 2012 · Viewed 46.6k times · Source

How can I get rid of the scrollbars on a HorizontalScrollView?

Answer

Benito Bertoli picture Benito Bertoli · Sep 4, 2012

Add the following to your xml:

android:scrollbars="none"

Or hide the scrollbars programmatically:

view.setVerticalScrollBarEnabled(false); 
view.setHorizontalScrollBarEnabled(false);