<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
//样式为固体,中间填充颜色
<solid android:color="#f00" />
//边框
<stroke
android:width="2dp"
android:color="#00f" />
//边角样式
<corners
android:bottomLeftRadius="100dp"
android:bottomRightRadius="10dp"
android:topLeftRadius="10dp"
android:topRightRadius="10dp" />
</shape>
Android shape属性在xml中自定义边框
最新推荐文章于 2021-09-16 14:07:37 发布