Android – Only top corners rounded in

android

I am trying to have the top corners of a shape rounded and the bottom just straight, but I'm having a problem with my shape it's saving

error!
UnsupportedOperationException: null

When I have

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

I have tried putting 1dp in the bottom corners and taking out the android:radius="10dp", but still gives me an error.

Android 2.2 with Eclipse

Can any one help me?

Best Answer

The tool in Eclipse isn't correct, deploy it to a real device and you should see that it is fine.