Separator
Horizontal or vertical divider line widget for visually grouping interface sections.
Overview
Separator draws a clean divider line along either horizontal or vertical orientation. Useful for demarcating menu items, toolbars, and section boundaries.
Divider Line
Separator divider = new Separator()
.orientation(Orientation.HORIZONTAL)
.thickness(1.0f)
.color(Color.of(0.2f, 0.2f, 0.2f, 1.0f));
API
Separator::color()
Line Color
Returns mutable color of separator divider.
Returns MutableColor.
Separator::orientation(Orientation)
Orientation
Returns or sets horizontal or vertical orientation.
| Parameter | Type | Description |
|---|---|---|
orientation |
Orientation |
— |
Returns Separator.
Separator::thickness(float)
Line Thickness
Returns or sets divider line stroke thickness in pixels.
| Parameter | Type | Description |
|---|---|---|
thickness |
float |
— |
Returns Separator.