How to create a transparent scrollbar in android?

I have a transparent list with an image as a background. Now, I want the scrollbar to be transparent, that is, I also need to see the background image through this scrollbar. Help Pls !!!

+4
source share
3 answers

In your XML, if you add a line

android:scrollbars="none" 

your ListView will still scroll, but has no visible scrollbars.

+7
source

Try the following:

 android:scrollbarThumbHorizontal="..." android:scrollbarThumbVertical="..." 

Where ... is a link to your transparent resource.

+7
source

Mark the answer to this post:

scrollBar in the View list ... its setting .

They describe how to create a custom scroll bar with a given image. Your solution would be to create an image with some alpha value to make it transparent or opaque as you want.

Oh yes, make sure your image is a .PNG file, since jpegs do not contain alpha information, so it cannot do transparency.

0
source

All Articles