SegmentedControlTokens

Default values and constants for SegmentedControl.

Callers rarely need to reference these directly; they are exposed so that custom SegmentedControl.Horizontal and SegmentedControl.Vertical wrappers can reuse the same layout limits.

Properties

Link copied to clipboard
Link copied to clipboard

Width of the outer border drawn around the control track.

Link copied to clipboard
Link copied to clipboard

Height of the divider line drawn between adjacent segments.

Link copied to clipboard

Width of the divider line drawn between adjacent segments.

Link copied to clipboard
Link copied to clipboard
const val MaxHorizontalSegments: Int = 5

Maximum number of segments accepted by SegmentedControl.Horizontal.

Link copied to clipboard
const val MaxVerticalSegments: Int = 8

Maximum number of segments accepted by SegmentedControl.Vertical.

Link copied to clipboard
Link copied to clipboard
const val MinSegments: Int = 2

Minimum number of segments accepted by SegmentedControl.Horizontal.

Link copied to clipboard

Minimum width and height applied to the control track to satisfy touch-target guidelines.

Link copied to clipboard
const val MinVerticalSegments: Int = 4

Minimum number of segments accepted by SegmentedControl.Vertical.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard