开发者

android:bottomRightRadius is actually left?

开发者 https://www.devze.com 2023-03-20 23:35 出处:网络
I\'m using a simple drawable rectacngle with opposite corners rounded as a android:background. <?xml version=\"1.0\" encoding=\"UTF-8\"?>

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?

0

精彩评论

暂无评论...
验证码 换一张
取 消