shape绘制圆角矩形

创建shape文件

 

shape文件中的代码

<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <solid
        android:color="#D3D3D3"
        />
    <corners
        android:topLeftRadius="20dip"
        android:topRightRadius="20dip"
        android:bottomLeftRadius="20dip"
        android:bottomRightRadius="20dip"/>

</shape>

猜你喜欢

转载自blog.csdn.net/bai1452789545/article/details/82656091