How about GradientDrawable instead?

http://developer.android.com/reference/android/graphics/drawable/GradientDrawable.html

( I don't see any methods to set gradient colors, though )

-- Kostya

28.06.2011 12:40, Paolo пишет:
Hi SofB thanks for your answer.
I did it, but the problem is here. From ShapeDrawable object I don't
figure out how to set the gradient color in the shape. Maybe I miss
something, please give me a tip.
http://developer.android.com/reference/android/graphics/drawable/ShapeDrawable.html

On 27 Giu, 16:26, Streets Of Boston<[email protected]>  wrote:
Depends.
Let's say you attach this drawable as the background of some View.
Call 'getBackgroundDrawable()' on this one and cast it to the correct
sub-class of Drawable. In your case that would be ShapeDrawable. Then
consult the online documentation to navigate your way to access and change
the gradient.

--
Kostya Vasilyev

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