On Sat, May 30, 2009 at 8:19 AM, mscwd01 <[email protected]> wrote:

>
> Hey,
>
> Quick question...
>
> Is there a way to define set values (i.e. 0%, 25%, 50%, 75%, 100%) for
> the seekbar widget that enables the slider to "snap" to the nearest
> set value? For example instead of allowing the user to position the
> slider at an percentage through 0-100, instead the slider can only
> ever be positioned at one of the five set values?


Does setting the range from 0-4 work? If not, you could add an
OnSeekBarChangeListener and reset the value to the nearest one yourself.

Oh and while were on the subject is there an easy solution for
> positioning the seekbar vertically, i'd rather not hack through the
> seekbar source code - but I fear I may have to!


SeekBar does not work vertically.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to