Home > Tricks & Tips > Remove scrollbars while scrolling the view

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

About these ads
  1. No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: