android:shape 设置圆形


组件高度和宽度设置为相同的值即可
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval"
android:useLevel="false">
<solid android:color="@color/_ff6900" />
<padding
android:bottom="1dp"
android:left="1dp"
android:right="1dp"
android:top="1dp" />
<solid android:color="@color/_ff6900" />
<size
android:width="50dp"
android:height="50dp" />
</shape>
posted @ 2017-11-21 17:05  你好and程序员  阅读(11429)  评论(0编辑  收藏  举报