DividerAttributes


abstract class DividerAttributes


The attributes of the divider layout and behavior.

Summary

Nested types

Describes the range that the user is allowed to drag the draggable divider.

A drag range represented as an interval of the primary container's split ratios.

The attributes of a draggable divider.

The DraggableDividerAttributes builder.

The attributes of a fixed divider.

The FixedDividerAttributes builder.

Constants

const Int

A special value to indicate that the system will choose a default value based on the display size and form factor.

Public companion properties

DividerAttributes

Indicates that no divider is requested.

Public functions

open String

Public properties

Int

the color of the divider.

Int

the width of the divider.

Constants

WIDTH_SYSTEM_DEFAULT

const val WIDTH_SYSTEM_DEFAULTInt

A special value to indicate that the system will choose a default value based on the display size and form factor. Some devices may choose 0 as the default width, while the same app may be shown with a wider divider on other devices that have a different default value. If an app prefers to show a divider of a fixed width on all device, it should set the fixed width in FixedDividerAttributes.Builder.setWidthDp or DraggableDividerAttributes.Builder.setWidthDp.

Public companion properties

NO_DIVIDER

val NO_DIVIDERDividerAttributes

Indicates that no divider is requested.

Public functions

toString

open fun toString(): String

Public properties

color

Added in 1.4.0
val colorInt

the color of the divider.

widthDp

Added in 1.4.0
val widthDpInt

the width of the divider.