{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

BorderStrokeKt

public final class BorderStrokeKt


Summary

Public methods

static final @NonNull BorderStroke
BorderStroke(@NonNull Dp width, @NonNull Color color)

Create BorderStroke class with width and Color

Public methods

BorderStroke

public static final @NonNull BorderStroke BorderStroke(@NonNull Dp width, @NonNull Color color)

Create BorderStroke class with width and Color

Parameters
@NonNull Dp width

width of the border in Dp. Use Dp.Hairline for one-pixel border.

@NonNull Color color

color to paint the border with