You don't have to make any subclasses.

make your_progress_horizontal.xml under drawable directory and

use it in your_layout.xml like this.

<SeekBar android:id="@+id/SeekBar01"
       android:layout_width="fill_parent"
android:layout_height="wrap_content"
       android:progressDrawable="@drawable/your_progress_horizontal"
       />

On Dec 2, 6:57 am, Mark Rosenberg <markrosenberg01460...@gmail.com>
wrote:
> Thanks for the example. Still not clear on how to proceed. Can I
> override the stuff in Android's built-in progress_horizontal.xml? Do I
> create an replacement layer-list? If so, how do I tie it into my
> SeekBar XML declaration? Or should I be looking at building my own
> ProgressBar subclass?
>
> On Nov 30, 6:32 pm, Romain Guy <romain...@google.com> wrote:
>
> > Hi,
>
> > You can see how we do it in the standard version of 
> > Android:http://android.git.kernel.org/?p=platform/frameworks/base.git;a=blob;...
>
> > Note however that changing the colors of the thumb will require to
> > provide new images. You won't be able to do that just from XML.
>
> > On Mon, Nov 30, 2009 at 6:29 PM, Mark Rosenberg
>
> > <markrosenberg01460...@gmail.com> wrote:
> > > Seems to me that I should be able to set the colors of the SeekBar
> > > thumb, slider, and progress bar in my layout xml file. However, I
> > > don't see relevant attributes for these SeekBar components. I only
> > > want to change the colors, not replace any images being used for the
> > > thumb, etc. What am I missing?
>
> > > --
> > > You received this message because you are subscribed to the Google
> > > Groups "Android Developers" group.
> > > To post to this group, send email to android-developers@googlegroups.com
> > > To unsubscribe from this group, send email to
> > > android-developers+unsubscr...@googlegroups.com
> > > For more options, visit this group at
> > >http://groups.google.com/group/android-developers?hl=en
>
> > --
> > Romain Guy
> > Android framework engineer
> > romain...@android.com
>
> > Note: please don't send private questions to me, as I don't have time
> > to provide private support.  All such questions should be posted on
> > public forums, where I and others can see and answer them

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

Reply via email to