android shape corners 四个属性无效解决

android shape corners 四个属性无效解决

<?xml version="1.0" encoding="utf-8"?>

<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >

    <item>
        <shape
            android:padding="0dp"
            android:shape="rectangle" >
            <!-- 实心 -->
            <solid android:color="#ff00ff" />
            <!-- 圆角 -->
            <corners android:radius="5dp" />
        </shape>
    </item>
    <item android:left="5dp">
        <shape android:shape="rectangle" >
            <solid android:color="#ff00ff" />
        </shape>
    </item>

</layer-list>

意思是套了两层,一层是圆角,别一层不是圆角,另一端圆角被盖住了。不懂的就去做图片吧

你可能感兴趣的:(android,Android开发,图片,文档,android应用)