Thứ Sáu, 5 tháng 8, 2011

Remove scrollbars while scrolling the view


Sometimes it’s very annoying if you use some ScrollView and the scrollbar just appears while you’re scrolling , such as: using HorizontalScrollView to create a toolbar …

Here the trick to remove the scrollbars, and you still can scroll your view nicely:


android:scrollbars="none"


The attribute will hide the scrollbar on the view.
Cheers,

Pete Houston

0 nhận xét: