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

DividerKt

public final class DividerKt


Summary

Public methods

static final void
@Composable
Divider(
    @NonNull Modifier modifier,
    @NonNull Dp thickness,
    @NonNull Color color
)

This method is deprecated. Renamed to HorizontalDivider

static final void
@Composable
HorizontalDivider(
    @NonNull Modifier modifier,
    @NonNull Dp thickness,
    @NonNull Color color
)

Material Design divider.

static final void
@Composable
VerticalDivider(
    @NonNull Modifier modifier,
    @NonNull Dp thickness,
    @NonNull Color color
)

Material Design divider.

Public methods

Divider

@Composable
public static final void Divider(
    @NonNull Modifier modifier,
    @NonNull Dp thickness,
    @NonNull Color color
)

HorizontalDivider

@Composable
public static final void HorizontalDivider(
    @NonNull Modifier modifier,
    @NonNull Dp thickness,
    @NonNull Color color
)

Material Design divider.

A divider is a thin line that groups content in lists and layouts.

Divider image

Parameters
@NonNull Modifier modifier

the Modifier to be applied to this divider line.

@NonNull Dp thickness

thickness of this divider line. Using Dp.Hairline will produce a single pixel divider regardless of screen density.

@NonNull Color color

color of this divider line.

VerticalDivider

@Composable
public static final void VerticalDivider(
    @NonNull Modifier modifier,
    @NonNull Dp thickness,
    @NonNull Color color
)

Material Design divider.

A divider is a thin line that groups content in lists and layouts.

Divider image

Parameters
@NonNull Modifier modifier

the Modifier to be applied to this divider line.

@NonNull Dp thickness

thickness of this divider line. Using Dp.Hairline will produce a single pixel divider regardless of screen density.

@NonNull Color color

color of this divider line.