开发者

android:bottomRightRadius is actually left?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜