Builder

class Builder

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun build(): Border
Link copied to clipboard
fun color(edge: YogaEdge, @ColorInt color: Int): Border.Builder

Specifies a color for a specific edge

Link copied to clipboard
fun colorRes(edge: YogaEdge, @ColorRes colorRes: Int): Border.Builder

Specifies a color for a specific edge

Link copied to clipboard
fun dashEffect(intervals: FloatArray, phase: Float): Border.Builder

Applies a dash effect to the border

Link copied to clipboard
fun discreteEffect(segmentLength: Float, deviation: Float): Border.Builder

Applies a discrete effect to the border

Link copied to clipboard
fun pathDashEffect(shape: Path?, advance: Float, phase: Float, style: PathDashPathEffect.Style?): Border.Builder

Applies a path dash effect to the border

Link copied to clipboard
fun radiusAttr(@AttrRes attrId: Int, @DimenRes defaultResId: Int = 0): Border.Builder

Specifies the border radius for all corners

fun radiusAttr(corner: Int, @AttrRes attrId: Int, @DimenRes defaultResId: Int): Border.Builder

Specifies the border radius for the given corner

Link copied to clipboard
fun radiusDip(@Dimension(unit = 0) radius: Float): Border.Builder

Specifies the border radius for all corners

fun radiusDip(corner: Int, @Dimension(unit = 0) radius: Float): Border.Builder

Specifies the border radius for the given corner

Link copied to clipboard
fun radiusPx(@Px radius: Int): Border.Builder

Specifies the border radius for all corners

fun radiusPx(corner: Int, @Px radius: Int): Border.Builder

Specifies the border radius for the given corner

Link copied to clipboard

Specifies the border radius for all corners

fun radiusRes(corner: Int, @DimenRes res: Int): Border.Builder

Specifies the border radius for the given corner

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

Specifies a width for a specific edge

Link copied to clipboard
fun widthDip(edge: YogaEdge, @Dimension(unit = 0) width: Float): Border.Builder

Specifies a width for a specific edge

Link copied to clipboard
fun widthPx(edge: YogaEdge, @Px width: Int): Border.Builder

Specifies a width for a specific edge

Link copied to clipboard
fun widthRes(edge: YogaEdge, @DimenRes widthRes: Int): Border.Builder

Specifies a width for a specific edge