I'm using a simple drawable rectacngle with opposite corners rounded as a android:background.
<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/ap开发者_如何转开发k/res/android"
android:shape="rectangle">
<solid
android:color="@android:color/white"
/>
<corners
android:radius="1dp"
android:topLeftRadius="0dp"
android:topRightRadius="40dp"
android:bottomLeftRadius="0dp"
android:bottomRightRadius="40dp"
/>
</shape>
I fill a little bit dissapointed. Is it OK?
Yep. There is a known issue. See this question: How can I work around Android issue 9161, where bottomRightRadius and bottomLeftRadius are swapped?
精彩评论