Paolo wrote: > 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 <flyingdutc...@gmail.com> 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.
developer.android.com/reference/android/graphics/drawable/ ShapeDrawable.ShaderFactory.html pskink -- 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