Stay organized with collections Save and categorize content based on your preferences.

Border

@ExperimentalTvMaterial3Api
public final class Border


Defines the border for a TV component.

Summary

Nested types

public static class Border.Companion

Public constructors

Border(@NonNull BorderStroke border, @NonNull Dp inset, @NonNull Shape shape)

Public methods

final @NonNull Border
copy(BorderStroke border, Dp inset, Shape shape)
boolean
equals(Object other)
final @NonNull BorderStroke

configures the width and brush for the border

final @NonNull Dp

defines how far (in dp) should the border be from the component it's applied to

final @NonNull Shape

defines the Shape of the border

int
@NonNull String

Public constructors

Border

public Border(@NonNull BorderStroke border, @NonNull Dp inset, @NonNull Shape shape)
Parameters
@NonNull BorderStroke border

configures the width and brush for the border

@NonNull Dp inset

defines how far (in dp) should the border be from the component it's applied to

@NonNull Shape shape

defines the Shape of the border

Public methods

copy

public final @NonNull Border copy(BorderStroke border, Dp inset, Shape shape)

equals

public boolean equals(Object other)

getBorder

public final @NonNull BorderStroke getBorder()

configures the width and brush for the border

getInset

public final @NonNull Dp getInset()

defines how far (in dp) should the border be from the component it's applied to

getShape

public final @NonNull Shape getShape()

defines the Shape of the border

hashCode

public int hashCode()

toString

public @NonNull String toString()