Hi there!

I'd like know how can I change programmatically the gradient color in
a shape previously defined in XML.

This is my shape, as background of a View:

<shape xmlns:android="http://schemas.android.com/apk/res/android";
        android:shape="rectangle">

        <corners android:radius="5dp" />

        <gradient android:startColor="#00CC5B" android:endColor="#007D21"
                                android:angle="90" />


</shape>


I would change the gradient color from code. How can I do that?

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