How to change Android SeekBar track start position?

user1000594 picture user1000594 · Oct 18, 2011 · Viewed 28.8k times · Source

I'd like to set the SeekBars's track start position so it does not start from the left side of the seekbar, but form an arbitrary position. Here is a photoshop image how it should look like:

http://i.imgur.com/QCMEu.png

It should be just a graphical effect, the SeekBar's underlying logic is not changed.

I tried to change the Seekbar.getprogressDrawable.SetBounds() to change the track image position, but no luck.

Answer

RajaReddy PolamReddy picture RajaReddy PolamReddy · Oct 18, 2011

add this proprety

 android:progress="2"