skgwazap skgwazap - 24 days ago 7
Android Question

Android seekbar with custom thumb

I want to create a seekbar like in this image:

seekbar

The question is, how to place thumb above the progress line?

This line

android:thumb="@drawable/thumb"


places the thumb in the center of the line. Any suggestions?

Answer

you can assume the whole bar and the above thumb as one seekbar what you have to do is just include the blank area above the bar in progress and background image and include the blank area below the thumb in the image for thumb.