Android的shape,两个圆角例子

来源:互联网 发布:法国工资 知乎 编辑:程序博客网 时间:2024/06/05 08:49
<?xml version="1.0" encoding="utf-8"?><layer-list xmlns:android="http://schemas.android.com/apk/res/android" >    <!-- 第一层 -->    <item>        <shape>            <solid android:color="#e9361a" />            <!-- 圆角 -->            <corners android:radius="4dp" />        </shape>    </item>    <!-- 第二层 -->    <!-- 距离第一层上边缘4px -->    <item android:top="4px">        <shape>            <!-- 实心填充颜色 -->            <solid android:color="#e9361a"/>        </shape>    </item></layer-list>

1 3
原创粉丝点击