radiusAttr

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

Specifies the border radius for all corners

Parameters

attrId

The attribute id to retrieve the border radius value from

defaultResId

Default resource to utilize if the attribute is not set


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

Specifies the border radius for the given corner

Parameters

corner

The Corner to specify the radius of

attrId

The attribute ID to retrieve the radius from

defaultResId

Default resource ID to use if the attribute is not set