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?
The word "squircle" is a portmanteau of the words "square" and "circle". Squircles have been applied in design and optics.
This is a classical conditioning principle where our brain is conditioned to think sharp objects can be harmful. A real-life example where sharp corners are considered harmful is when you're baby-proofing your house by using rounded fittings on sharp table corners.
"Rounded Corners" is a finishing technique used to improve the aesthetics and/or functionality of certain printed pieces. For example, business cards and promotional brochures are often designed with rounded corners to achieve a unique look.
The tool in Eclipse isn't correct, deploy it to a real device and you should see that it is fine.
For me it worked fine when i changed 0dip to 0.1dip. Tested on android 1.6
<corners android:bottomRightRadius="0.1dp"
android:bottomLeftRadius="0.1dip"
android:topLeftRadius="10dip"
android:topRightRadius="10dip"/>
But on the other hand I didn't get any error when I had 0dip. The problem was that all corners was getting 0dip, so it's possible you got another error in the xml
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With