Android 为你的布局填上圆角边框

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">

    <solid android:color="#fff" />

    <padding
        android:top="10dp" />

    <corners
        android:bottomLeftRadius="10dp"
        android:bottomRightRadius="10dp"
        android:topLeftRadius="10dp"
        android:topRightRadius="10dp" />
</shape>

//然后在xml布局文件中引用就好

猜你喜欢

转载自blog.csdn.net/as89751/article/details/81807517