版权声明:本文为程序园中猿原创文章,转载请注明出处 https://blog.csdn.net/yinxing2008/article/details/85258372
普通圆
效果图
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#FFF68F" />
<size
android:width="20dp"
android:height="20dp" />
</shape>
带边的圆
效果图
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<solid android:color="#FFF68F" />
<stroke
android:width="1dp"
android:color="#FFFFFF" />
<size
android:width="20dp"
android:height="20dp" />
</shape>
附录:
安卓开发技术分享: https://blog.csdn.net/yinxing2008/article/details/84555061