BorderStylePreset

constructor(@NonNull style: BorderStyle)

Creates preset with border style style and null dash array.

Parameters

style

Border style to use.


constructor(@NonNull style: BorderStyle, @Nullable dashArray: List<Integer>)

Creates preset with border style style and dash array dashArray.

Parameters

style

Border style to use.

dashArray

Dash array to use. Valid only when style is set to DASHED.


constructor(@NonNull borderStyle: BorderStyle, @NonNull borderEffect: BorderEffect, @Nullable dashArray: List<Integer>)

Creates preset with border style borderStyle, border effect borderEffect and dash array dashArray.

Parameters

borderStyle

Border style to use.

borderEffect

Border effect to use.

dashArray

Dash array to use. Valid only when style is set to DASHED.


constructor(@NonNull borderStyle: BorderStyle, @NonNull borderEffect: BorderEffect, @FloatRange(from = 0.0) borderEffectIntensity: Float, @Nullable dashArray: List<Integer>)

Creates preset with border style borderStyle, border effect borderEffect and dash array dashArray.

Parameters

borderStyle

Border style to use.

borderEffect

Border effect to use.

borderEffectIntensity

Intensity of the border effect. See setBorderEffectIntensity for more details.

dashArray

Dash array to use. Valid only when style is set to DASHED.