styleBinding样式绑定,可控制颜色、宽高、定位等,样式用styleBinding包裹,里面的属性用attribute的name定义,value控制值
| 样式 | 值 |
|---|---|
| layout | linearLayout,absoluteLayout |
| width | 宽 |
| height | 高 |
| paddingTop | 内边距上下左右,会根据宽度640标准伸缩 |
| paddingLeft | |
| paddingRight | |
| paddingBottom | |
| marginBottom | 外边距上下左右,会根据宽度640标准伸缩 |
| marginLeft | |
| marginTop | |
| marginRight | |
| backgroundColor | 背景颜色,如#b2b2b2 |
| borderColor | 边框颜色 |
| borderWidth | 边框宽度,数字 |
| borderStyle | 边框样式,dotted、dashed、solid |
| invisible | true |
| textColor | 文本颜色,将替换为color |
| fontSize | 字体颜色 |
| textAlign | 文本对齐方式right、center、left |
| layout | 容器的布局类型。可选值:absoluteLayout/linearLayout, 分别为绝对布局/线性布局 |
