widthAttr

fun widthAttr(edge: YogaEdge, @AttrRes attrId: Int): Border.Builder

Specifies a width for a specific edge

Note: Having a border effect with varying widths per edge is currently not supported

Parameters

edge

The YogaEdge that will have its width modified

attrId

The attribute to resolve a width value from


fun widthAttr(edge: YogaEdge, @AttrRes attrId: Int, @DimenRes defaultResId: Int): Border.Builder

Specifies a width for a specific edge

Note: Having a border effect with varying widths per edge is currently not supported

Parameters

edge

The YogaEdge that will have its width modified

attrId

The attribute to resolve a width value from

defaultResId

Default resource value to utilize if the attribute is not set