use this... <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" type="rectangle"> <gradient android:startColor="#b1aeab" android:endColor="#b1aeab" android:angle="270"/> <corners android:radius="5dp" /> </shape>
On Dec 26, 7:39 am, brnzn <brendon.mathe...@gmail.com> wrote: > I'm able to construct a GradientDrawable in Java code and set it to be > the background drawable of a layout that I've inflated from XML, but I > don't seem to be able to find any documentation on how I can define > the GradientDrawable in XML. > > The documentation for GradientDrawable says: > > See Gradient in the Resources topic to learn how to specify this > type as an XML resource > > and links you > tohttp://code.google.com/android/reference/available-resources.html#gra... > however that link's anchor doesn't exist, and there's no mention of > gradients there. Is the feature available but not documented? (hoping > so) > > This was brought up a while back > here:http://groups.google.com/group/android-developers/browse_thread/threa... > Since thread is closed to new replies I'm posting a new one. > > Cheers, > brnzn --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---