sorry, I should have included this in the original post, but this is my @drawable/progress_bar --
<?xml version="1.0" encoding="UTF-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/ android"> <item android:id="@+android:id/background" android:drawable="@drawable/progress_background"/> <item android:id="@+android:id/secondaryProgress" android:drawable="@drawable/progress_secondary"/> <item android:id="@+android:id/progress" android:drawable="@drawable/progress"/> </layer-list> Needless to say, background does not work here. The documentation for a custom progress bar is pretty thin... tia. On Sep 6, 3:26 am, Mark Murphy <mmur...@commonsware.com> wrote: > sdphil wrote: > > this does not work -- > > > <!-- (progress bar) --> > > <ProgressBar android:id="@+id/ProgressBar" > > > > style="?android:attr/progressBarStyleHorizontal" > > android:progressDrawable="@drawable/ > > progress_bar" > > android:layout_width="fill_parent" > > android:secondaryProgress="0" > > android:progress="0" > > android:max="100" > > android:layout_height="9px" > > android:background="@color/red"/> > > Ideas? > > ProgressBar does not have a background, AFAICT. Make the bottom layer of > your @drawable/progress_bar be red. > > -- > Mark Murphy (a Commons > Guy)http://commonsware.com|http://twitter.com/commonsguy > > _Android Programming Tutorials_ Version 1.0 In Print! --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---