在Compose中的ConstraintLayout中,
width = Dimension.fillToConstraints。在一个方向的两边属性都有约束时,这个属性可以填充约束布局。类似width=0dp,weight= 1
width = Dimension.preferredWrapContent。除非ConstraintSet中的约束条件不允许,否则将尊重wrap content的大小。
在Compose中的ConstraintLayout中,
width = Dimension.fillToConstraints。在一个方向的两边属性都有约束时,这个属性可以填充约束布局。类似width=0dp,weight= 1
width = Dimension.preferredWrapContent。除非ConstraintSet中的约束条件不允许,否则将尊重wrap content的大小。
本文标题:Compose中width的属性
本文链接:https://www.haomeiwen.com/subject/wdecldtx.html
网友评论