74、shape 画圆 加 边框

时间:2021-12-09 10:09:15

74、shape 画圆 加 边框

 <?xml version="1.0" encoding="utf-8"?>
<!--<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="ring" android:useLevel="false"> <solid android:color="@color/code44" />
<stroke android:width="3dp" android:color="@color/code43" /> </shape>-->
<shape
xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false" > <solid android:color="@color/code44" />
<!--<padding
android:left="2dp"
android:top="1dp"
android:right="2dp"
android:bottom="1dp" />
<solid android:color="@color/code44" />-->
<stroke
android:width="1dp"
android:color="@color/white" /> <size android:width="35dp"
android:height="35dp" />
</shape>