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, 分别为绝对布局/线性布局

 

详细:https://open.taobao.com/doc.htm?docId=107455&docType=1

相关文章:

  • 2021-12-28
  • 2022-01-13
  • 2021-12-23
  • 2022-03-09
  • 2021-05-26
  • 2022-12-23
  • 2022-12-23
  • 2021-07-25
猜你喜欢
  • 2022-02-02
  • 2022-01-25
  • 2021-09-08
  • 2021-07-10
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案