<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 圆角的属性 -->
<corners
android:radius=""
android:topLeftRadius=""
android:topRightRadius=""
android:bottomLeftRadius=""
android:bottomRightRadius=""/>
<!-- 渐变属性 渐变色填充
angle渐变的过度角度
startColor 开始的颜色
endColor 结束时的颜色
android:centerX=""
android:centerY=""中间过度色的开始位置
android:centerColor=""中间过渡色的颜色
android:type="" 渐变色的样式 线性 圆型
android:gradientRadius="" 渐变圆形样式的半径
-->
<gradient
android:angle=""
android:startColor=""
android:centerX=""
android:centerY=""
android:centerColor=""
android:endColor=""
android:useLevel=""
android:type=""
android:gradientRadius=""
/>
<!-- 内间距 里面内容与边界线的距离 -->
<padding
/>
<!-- 单一填充色 不能与 gradient 同时使用-->
<!-- 边界线的宽度 颜色 样式 描边
android:dashGap=""虚线的间隔距离
android:dashWidth="" 虚线的实线 长度 -->
<stroke
android:width=""
android:color=""
android:dashWidth=""
android:dashGap=""/>
</shape>
<shape xmlns:android="http://schemas.android.com/apk/res/android" >
<!-- 圆角的属性 -->
<corners
android:radius=""
android:topLeftRadius=""
android:topRightRadius=""
android:bottomLeftRadius=""
android:bottomRightRadius=""/>
<!-- 渐变属性 渐变色填充
angle渐变的过度角度
startColor 开始的颜色
endColor 结束时的颜色
android:centerX=""
android:centerY=""中间过度色的开始位置
android:centerColor=""中间过渡色的颜色
android:type="" 渐变色的样式 线性 圆型
android:gradientRadius="" 渐变圆形样式的半径
-->
<gradient
android:angle=""
android:startColor=""
android:centerX=""
android:centerY=""
android:centerColor=""
android:endColor=""
android:useLevel=""
android:type=""
android:gradientRadius=""
/>
<!-- 内间距 里面内容与边界线的距离 -->
<padding
/>
<!-- 单一填充色 不能与 gradient 同时使用-->
<!-- 边界线的宽度 颜色 样式 描边
android:dashGap=""虚线的间隔距离
android:dashWidth="" 虚线的实线 长度 -->
<stroke
android:width=""
android:color=""
android:dashWidth=""
android:dashGap=""/>
</shape>