Android: the problem with the shapes "corners". This is mistake?

I played with the corners, and it intrigued me. XML layout:

<TextView xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/list_header_title" android:layout_height="wrap_content" android:layout_width="fill_parent" android:padding="10dip" android:gravity="center_vertical" android:background="@layout/my_outline" android:text="Example" android:textSize="14sp" android:textStyle="bold" /> 

This is my_outline.xml: (pay attention to the corner tag)

 <?xml version="1.0" encoding="utf-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle"> <corners android:topLeftRadius="10dip" android:bottomRightRadius="10dip"/> <padding android:left="50dip" android:top="5dip" android:bottom="5dip" /> <solid android:color="#0fff" /> <stroke android:width="1dip" android:color="#f0f0f0" /> </shape> 

Photo:

enter image description here

Change the form to:

 <corners android:topLeftRadius="10dip" android:bottomLeftRadius="10dip"/> 

And you can clearly see that the lower corners are inverted (happens to everyone, I shorten the "environment" to illustrate). This is a picture of my phone (Nexus S 2.3.2, but also on the emulator):

enter image description here

Do you know about this? I looked at Google ("Android inverted angle") and received nothing. There are also no β€œrelated issues” here on SO.

+4
source share
1 answer

Yes, this is a noted error. See this answer for more links and reference information .: P

+9
source

All Articles