Take the 2-minute tour ×

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:


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.

share|improve this question

4 Answers 4

add this proprety

share|improve this answer
Hi, thanks for the reply. Id like to set the start position of the track line, not the seeekbars thumb. As you can see in the image (i.imgur.com/QCMEu.png) the seekbars track does not start at the far left of the seekbar, but starts form the first quarter of the seekbar. Id like to acheve that effect. –  user1000594 Oct 18 '11 at 11:23
u want arrange seek from middle. or desired position . –  RajaReddy PolamReddy Oct 18 '11 at 11:48

You can set progress of seekbar in xml as:

android:max="90" <!-- maximum seekbar progress -->

you can programatically srt the progress of seekbar as:

share|improve this answer
Hi, I`d like to set the start position of the track, not the progress. –  user1000594 Oct 18 '11 at 11:30
actually i am unable to open the link.can you please upload the same image here in SO so that we can get idea what you want exactly? –  Hiral Oct 18 '11 at 11:57

By Programatically,we can start the progress and set the maximum of seekbar progress.

//start from <starting value>

//Set to maximum Value<max_value>
share|improve this answer

May be your problem is similar to Seekbar for two values [-50, 0, 50].

Thanks to Commonsware to point to right direction. I wrote a class inspired by code.google.com/p/range-seek-bar) to get the solution.


share|improve this answer

Your Answer


