在drawable中新建xml布局文件
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:top="-2dp" android:right="-2dp" android:left="-2dp"
>//因为是下框线,所以要将上,右左往旁边移动2dp,使其在布局外面看不见了
<shape>
<stroke android:color="@color/cheng" android:width="0.8dp"/>//设置颜色和宽度
</shape>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item >
<shape >
<corners android:radius="10dp"/>//弧度
<stroke android:color="@color/hui" android:width="2dp"/>//颜色和宽度
</shape>
</item>
</layer-list>
//这是一个圆角的全框线