-1

Is it possible to define a similiar rectangle like this:

 <item android:id="@android:id/background">
        <shape>
                  <gradient
                    android:angle="270"
                    android:endColor="#444444"
                    android:startColor="#666666" />

            <corners android:radius="10dip" />
        </shape>
    </item>

</layer-list>

BUT ONLY the upper corners WITH radius, and the others without.

Adam Varhegyi
  • 11,307
  • 33
  • 124
  • 222

1 Answers1

1

Cherck out this questions:

Rounded corners only on top

This is the answer:

<corners android:radius="1dp" android:topLeftRadius="6dp" android:topRightRadius="6dp" android:bottomLeftRadius="0dp" android:bottomRightRadius="0dp"/>

Note that Eclipse chokes on this and will not display correctly in the view editor though,

Community
  • 1
  • 1
Kaediil
  • 5,465
  • 2
  • 21
  • 20