BorderStylePreset

Preset for border styles. Encapsulates both BorderStyle and dash array used for DASHED.

See also

Annotation

Constructors

Link copied to clipboard
constructor(@NonNull style: BorderStyle)
Creates preset with border style style and null dash array.
constructor(@NonNull style: BorderStyle, @Nullable dashArray: List<Integer>)
Creates preset with border style style and dash array dashArray.
constructor(@NonNull borderStyle: BorderStyle, @NonNull borderEffect: BorderEffect, @Nullable dashArray: List<Integer>)
Creates preset with border style borderStyle, border effect borderEffect and dash array dashArray.
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.

Properties

Link copied to clipboard
The border effect (cloudy, no effect) applied to this preset.
Link copied to clipboard
@FloatRange(from = 0.0)
@get:FloatRange(from = 0.0)
val borderEffectIntensity: Float
The intensity of the border effect (used for cloudy borders).
Link copied to clipboard
The border style (solid, dashed, none, etc.) for this preset.
Link copied to clipboard
Cloudy line border.
Link copied to clipboard
The dash array pattern for dashed borders, or null for non-dashed styles.
Link copied to clipboard
Dashed line border with a 1:1 dash-to-gap ratio (fine dashes).
Link copied to clipboard
Dashed line border with a 1:3 dash-to-gap ratio (short dashes with larger gaps).
Link copied to clipboard
Dashed line border with a 3:3 dash-to-gap ratio (medium dashes).
Link copied to clipboard
Dashed line border with a 6:6 dash-to-gap ratio (large dashes).
Link copied to clipboard
Link copied to clipboard
Solid line border.

Functions

Link copied to clipboard
open fun equals(o: Any): Boolean
Compares this border style preset with the specified object for equality.
Link copied to clipboard
open fun hasBorder(): Boolean
Returns whether border style preset represents a border.
Link copied to clipboard
open fun hashCode(): Int
Returns a hash code value for this border style preset.