DividerAttributes
public abstract class DividerAttributes
DividerAttributes.DraggableDividerAttributes |
The attributes of a draggable divider. |
DividerAttributes.FixedDividerAttributes |
The attributes of a fixed divider. |
The attributes of the divider layout and behavior.
| See also | |
|---|---|
setDividerAttributes |
|
DividerAttributes.FixedDividerAttributes |
|
DividerAttributes.DraggableDividerAttributes |
|
NO_DIVIDER |
Summary
Nested types |
|---|
public abstract class DividerAttributes.DragRangeDescribes the range that the user is allowed to drag the draggable divider. |
public final class DividerAttributes.DragRange.SplitRatioDragRange extends DividerAttributes.DragRangeA drag range represented as an interval of the primary container's split ratios. |
public final class DividerAttributes.DraggableDividerAttributes extends DividerAttributesThe attributes of a draggable divider. |
@RequiresWindowSdkExtension(version = 6)The |
public final class DividerAttributes.FixedDividerAttributes extends DividerAttributesThe attributes of a fixed divider. |
@RequiresWindowSdkExtension(version = 6)The |
Constants |
|
|---|---|
static final int |
A special value to indicate that the system will choose a default value based on the display size and form factor. |
Public fields |
|
|---|---|
static final @NonNull DividerAttributes |
Indicates that no divider is requested. |
Public methods |
|
|---|---|
final int |
getColor()the color of the divider. |
final int |
the width of the divider. |
@NonNull String |
toString() |
Constants
WIDTH_SYSTEM_DEFAULT
public static final int WIDTH_SYSTEM_DEFAULT
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.
| See also | |
|---|---|
widthDp |
|
setWidthDp |
|
setWidthDp |
Public fields
NO_DIVIDER
public static final @NonNull DividerAttributes NO_DIVIDER
Indicates that no divider is requested.