The docs say you should do the following if you only want some corners rounded:
<corners android:radius="15dp" android:bottomRightRadius="0dip" android:bottomLeftRadius="0dip" /> Never got that it work tho. On Jan 25, 2:30 pm, Kostya Vasilyev <kmans...@gmail.com> wrote: > Lior, > > Apparently, something like this works a little better: > > <corners > android:topLeftRadius="15dp" > android:topRightRadius="15dp" > android:bottomRightRadius="0.1dp" > android:bottomLeftRadius="0.1dp" /> > > -- Kostya > > 25.01.2011 15:58, Smiley пишет: > > > > > Hi, > > I am following the instruction here: > >http://developer.android.com/guide/topics/resources/drawable-resource... > > > and I am trying to draw a rectangle with only 2 rounded corners. > > > Here is my xml > > > <?xml version="1.0" encoding="utf-8"?> > > <shape xmlns:android="http://schemas.android.com/apk/res/android"> > > > <corners android:radius="15dp" android:bottomRightRadius="0dp" > > android:bottomLeftRadius="0dp" /> > > <gradient android:angle="90" android:startColor="#c45209" > > android:endColor="#edb18c" android:centerColor="#ea6814" /> > > </shape> > > > I tried many variations, with or without the android:radius attribute > > but no luck. > > Any suggestions? > > Thanks, > > Lior > > -- > Kostya Vasilyev -- WiFi Manager + pretty widget > --http://kmansoft.wordpress.com -- 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