关于shape的一些属性
来源:互联网 发布:社交网络头像 编辑:程序博客网 时间:2024/05/22 11:39
solid:实心,就是填充的意思
android:color指定填充的颜色gradient:渐变
android:startColor和android:endColor分别为起始和结束颜色,ndroid:angle是渐变角度,必须为45的整数倍。
另外渐变默认的模式为android:type="linear",即线性渐变,可以指定渐变为径向渐变,android:type="radial",径向渐变需要指定半径android:gradientRadius="50"。
stroke:描边
android:width="2dp" 描边的宽度,android:color 描边的颜色。
我们还可以把描边弄成虚线的形式,设置方式为:
android:dashWidth="5dp"
android:dashGap="3dp"
其中android:dashWidth表示'-'这样一个横线的宽度,android:dashGap表示之间隔开的距离。
corners:圆角
android:radius为角的弧度,值越大角越圆。
我们还可以把四个角设定成不同的角度,方法为:
<corners android:topRightRadius="20dp" 右上角 android:bottomLeftRadius="20dp" 右下角 android:topLeftRadius="1dp" 左上角 android:bottomRightRadius="0dp" 左下角 />
0 0
- 关于shape的一些属性
- Android开发——关于shape和Selectors文件的一些属性
- android关于shape的gradient属性详解
- 关于android里面Shape属性的使用
- android关于shape的gradient属性详解
- android关于shape的gradient属性详解
- [android]使用shape来定义控件的一些显示属性
- 使用shape来定义控件的一些显示属性
- Android: Selector 与 Shape 属性的一些基本用法
- visio中关于shape属性的修改和读取
- Shape的gradient属性
- android shape的属性
- android shape 的属性
- Android shape的属性
- Shape自身的属性
- shape的属性
- 关于RichTextbox的一些属性
- 关于tableviewcell的一些属性
- 继承Ext.data.Model
- IOS设备支持多个方向旋转
- DevExpress.XtraGrid InitNewRow经典 .
- linux 网络配置
- 2013-12-OC新语法小结
- 关于shape的一些属性
- java中复制文件的效率测试
- File:afx.inl Line:122
- android sip协议框架
- 单点登录
- cocos2d-x自定义回调实现
- Cadence 信号完整性(二)-- 电源完整性理论基础2
- 3912. 计算星期几 细心就好
- 江湖传言DNS挂了