含义: 矩形框对象的属性;数量: 0-n | |||||
属性名称 | 含义 | 可用值 | 默认值 | ||
color 或 lineColor | 边框线的颜色 | 颜色串 | #000000 | ||
thick | 边框线粗 | 像素数 | 1 | ||
style | 线型 | solid / dash / dot / dashdot | solid | ||
bgColor 或 backColor | 填充色 | 颜色串,或者是以逗号分隔的多个颜色串的垂直渐变色 | 无(透明) | ||
isDragBar | 是否可拖拽 | true/false | false | ||
注: “可拖拽”是指在TableLayout中作为可被拖拽的分隔条 | |||||
以下属性为渲染功能,不太常用 ![]() | |||||
mirror | 画上方的渐变倒影 | 格式例如:“offset=2;alpha=255” offset - 倒影开始处的垂直偏移; alpha - 倒影开始处的透光度, 0 - 255; | (无) | ||
pathId | 使用路径 | <Paths>中某个Path资源,用于下面的pathBorder、Filter | (无) | ||
pathBorder | 画路径轮廓线 | 格式例如“thick=1;color=#ff0000;style=dashdot” | (无) | ||
filter | 在路径内渲染 | 1.线性渐变,例如如下串: “start.color=#ff0000; start.alpha=255; start.x=100; start.y=10%; end.color=#ff0000; end.alpha=0; end.x=10; end.y=90%” 2.中心辐射渐变,例如如下串: “start.color=#ff0000; end.color=#ff0000; start.alpha=255; end.alpha=0; center.x=10; center.y=90%; scale=0.3” center为中心点坐标,scale为非均匀分隔点,为小于等于1的分数. 备注:以上坐标均为相对坐标 | (无) |