Vaibhav Goel wrote:
> Hi
>
> I want to make a custom seek bar having color gradient as shown in the
> below image url.
>
> http://i49.tinypic.com/2mi5lsh.jpg
>
> For this I tried to make background as
>
> seek_background.xml
>
> <shape xmlns:android="http://schemas.android.com/apk/res/android";
> android:shape="rectangle">
>     <gradient android:startColor="#FFFFAA00"
> android:endColor="#FFFF0000"
>             android:angle="0"/>
>     <stroke android:width="1dp" android:color="#AAFFFFFF" />
>     <padding android:left="7dp" android:top="7dp"
>             android:right="7dp" android:bottom="7dp" />
>     <corners android:radius="4dp" />
> </shape>
>
>
> and Seekbar in layout xml as
>
>     <SeekBar
>     android:layout_width="fill_parent"
>     android:layout_height="wrap_content"
>     android:padding="20sp"
>     android:progressDrawable="@drawable/seek_background"/>
>
> But it makes the complete background colored as shown in below url.
>
> http://i47.tinypic.com/104ktxe.jpg
>
> Please help me out.
>
> Thanks

Hi,

for more extensive/sophisticated customization you coukd take a look
into tutorial i once wrote @anddev

http://www.anddev.org/decorated_and_animated_seekbar_tutorial-t10937.html

i'm not sure if you can download sources attached if you are not
logged

pskink

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