RadialMenuDefaults

Default constants and dimensions used in the radial menu components.

Since

1.0.0

Properties

Link copied to clipboard
const val ANIMATION_DURATION_MS: Int = 300

Default animation duration for open/close transitions (ms).

Link copied to clipboard
const val CORNER_ITEM_THRESHOLD: Int = 3

Maximum item count that still uses radial layout in a corner. 4+ items trigger edge-hug.

Link copied to clipboard
const val DEAD_ZONE_PX: Float = 50.0f

Minimum drag distance (px) before selection starts.

Link copied to clipboard
const val DOUBLE_TAP_TIMEOUT_MS: Long = 300

Maximum interval between two taps for a double-tap (ms).

Link copied to clipboard
const val DRAG_INDICATOR_ALPHA: Float = 0.7f

Alpha of the drag direction indicator line.

Link copied to clipboard
const val EDGE_HUG_GAP_DP: Float = 8.0f

Gap between adjacent items in edge-hug layout (dp).

Link copied to clipboard
const val EDGE_HUG_PAD_DP: Float = 12.0f

Padding from the screen edge in edge-hug layout (dp).

Link copied to clipboard
const val EDGE_THRESH_DP: Float = 80.0f

Distance from screen edge (dp) within which a touch is considered a corner zone.

Link copied to clipboard
const val ICON_SIZE_DP: Float = 32.0f

Default icon size (dp).

Link copied to clipboard
const val ICON_SPREAD_DEGREES: Float = 45.0f

Angular spacing between adjacent items (degrees).

Link copied to clipboard
const val ITEM_SCALE_NORMAL: Float = 1.0f

Default item scale at rest.

Link copied to clipboard
const val ITEM_SCALE_SELECTED: Float = 1.4f

Default item scale when selected/hovered.

Link copied to clipboard
const val LONG_PRESS_TIMEOUT_MS: Long = 400

Duration before a press is considered a long press (ms).

Link copied to clipboard
const val MENU_RADIUS_DP: Float = 90.0f

Default menu radius from touch center to icon centers (dp).

Link copied to clipboard
const val SELECTION_DEAD_ZONE_DEG: Float = 30.0f

Maximum angular distance from an item to still count as selected (degrees).