标签
标签 | 作用 | 属性 | 作用 |
---|---|---|---|
solid | 填充 | android:color | 指定填充的颜色 |
gradient | 渐变 | android:startColor | 起始颜色 |
android:endColor | 结束颜色 | ||
android:angle | 渐变角度,必须为45的整数倍 | ||
android:type=”linear” | 线性渐变 | ||
android:type=”radial” | 径向渐变需要指定半径android:gradientRadius=”50” | ||
stroke | 描边 | android:width=”2dp” | 描边的宽度 |
corners | 圆角 | android:radius | 角的弧度,值越大角越圆 |
padding | 间隔 |
1. solid:填充