原文:http://blog.csdn.net/sunny2come/article/details/6890934
<!-- 实心 -->
<solid android:color="#ff9d77" />
<!-- 渐变 -->
<gradient
android:angle="90" // 必须45°倍数
android:type="linear | radial | sweep" // type 为 radial时必须指定 android:gradientRadius 半径
android:centerColor="#FFFFFF"
android:endColor="#000000"
android:startColor="#ff8c00" />
<!-- 描边 -->
<stroke
android:width="10dp"
color="#dcdcdc"
// - - - - - - 下面2个是虚线 - - - - - - -
android:dashGap="3dp" //2个虚线间隔
android:dashWidth="5dp" //虚线长度/>
<!-- 圆角 -->
<corners android:radius="10dp" />
<!-- <padding -->
<!-- android:bottom="10dp" -->
<!-- android:left="10dp" -->
<!-- android:right="10dp" -->
<!-- android:top="10dp" /> -->