You can just use the default style of the horizontal progress bar and in
addition set the progressDrawable to the resource for your XML file.

jason

On Wed, Dec 3, 2008 at 6:06 PM, Protocol-X <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I am trying to implement a custom style to a progress bar.  I have the
> style but i cannot seem to find any documentation on how to actually
> add it since there is no style folder that can be accessed that i see
> atleast.
>
> Can anyone help?
>
> <layer-list xmlns:android="http://schemas.android.com/apk/res/
> android">
>
>    <item android:id="@android:id/background">
>        <shape>
>            <corners android:radius="5dip" />
>            <gradient
>                    android:startColor="#ff9d9e9d"
>                    android:centerColor="#ff5a5d5a"
>                    android:centerY="0.75"
>                    android:endColor="#ff747674"
>                    android:angle="270"
>            />
>        </shape>
>    </item>
>
>    <item android:id="@android:id/secondaryProgress">
>        <clip>
>            <shape>
>                <corners android:radius="5dip" />
>                <gradient
>                        android:startColor="#80ffd300"
>                        android:centerColor="#80ffb600"
>                        android:centerY="0.75"
>                        android:endColor="#a0ffcb00"
>                        android:angle="270"
>                />
>            </shape>
>        </clip>
>    </item>
>
>    <item android:id="@android:id/progress">
>        <clip>
>            <shape>
>                <corners android:radius="5dip" />
>                <gradient
>                        android:startColor="#ffffd300"
>                        android:centerColor="#ffffb600"
>                        android:centerY="0.75"
>                        android:endColor="#ffffcb00"
>                        android:angle="270"
>                />
>            </shape>
>        </clip>
>    </item>
>
> </layer-list>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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