Radial Menu View
A custom, drag-to-select radial menu Android View component.
Features dynamic angle calculation to prevent edge clipping, gesture tracking, continuous physics-based selection, and support for an unlimited number of items.
This View operates entirely on the Android Canvas API with zero Compose dependencies.
Z-Order Note: For correct z-ordering (menu above toolbars, bottom nav, FABs), this View expects an Activity context. If the context is not an Activity (e.g., Dialog, Service), the overlay will render within the current view hierarchy instead of above all UI elements.
Since
1.0.0
Properties
When true, items arrange in an L-shape along screen edges when long-pressed in a corner with 4+ items. Defaults to false (pure radial layout).
Returns true if the radial menu is currently visible and active.
Callback invoked on a double tap.
Callback invoked when a radial menu item is selected.
Callback invoked when the radial menu is closed after a gesture finishes.
Callback invoked when the radial menu is opened via long press.
Functions
Updates the active/toggle state of an item by its id.
Sets the list of items to display in the menu.