圆角矩形
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners android:radius="5.0dp" />
<solid android:color="#f09738" />
</shape>
圆柱
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="@color/colorAccent" />
<size
android:width="15dp"
android:height="15dp" />
<corners android:radius="40dp" />
</shape>
圆
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<size
android:width="15dp"
android:height="15dp" />
<solid android:color="#f09738" />
</shape>
带边框的圆角矩形(圆柱带边框,圆形带边框同理)
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="rectangle" >
<corners android:radius="5.0dp" />
<solid android:color="#f09738" />
<stroke android:width="3dp"
android:color="#ffffff"/>
</shape>
渐变
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android