ListPopupDefaults

Properties

Link copied to clipboard

Content alpha enter spring (COUI main-menu enter alpha COUISpringForce response 0.35 / bounce 0.2, mapped by folmeSpring).

Link copied to clipboard

Content alpha exit spring; also the master timing for unmounting the popup (COUI main-menu exit alpha COUISpringForce response 0.25 / bounce 0). The Compose default visibility threshold avoids COUI's long invisible tap-blocking tail.

Link copied to clipboard

Extra clearance reserved above the navigation bar before the popup may be placed (COUI coui_popup_list_window_margin_bottom_barrier_with_navigation).

Link copied to clipboard

A PopupPositionProvider that anchors the popup to a corner of the anchor for context menus.

Link copied to clipboard

Default animation spec driving the background dim while entering.

Link copied to clipboard

Default animation spec driving the background dim while exiting.

Link copied to clipboard

Scale enter spring (COUI main-menu enter COUISpringForce response 0.35 / bounce 0.2).

Link copied to clipboard

Scale exit spring (COUI main-menu exit scale COUISpringForce response 0.3 / bounce 0). COUI's exit is asymmetric: the scale settles on its own spring while AlphaExitAnimationSpec drives the faster fade and the unmount timing.

Link copied to clipboard

The horizontal margin a dropdown keeps from the window edges, so the menu never sits flush to a screen edge. Stands in for COUI's responsive-grid barrier, whose margin lives in the vendor responsiveui component; measured at 16dp on ColorOS 16.

Link copied to clipboard

Default maximum width of the popup window (COUI coui_popup_list_window_max_width). Also matches the upper clamp inside ListPopupColumn's width measurement.

Link copied to clipboard

Default minimum height the popup will occupy when measured. Used as the floor for the effective maxHeight and minHeight constraints during placement.

Link copied to clipboard

Default minimum width of the popup (COUI coui_popup_list_window_min_width). Also matches the lower clamp inside ListPopupColumn's width measurement.

Link copied to clipboard

Re-enter spring used when a cancelled back gesture restores the popup; matches FractionAnimationSpec.

Link copied to clipboard

Extra clearance reserved below the status bar before the popup may be placed (COUI coui_popup_list_window_margin_top_or_bottom_barrier).

Functions

Link copied to clipboard
fun dropdownPositionProvider(verticalMargin: Dp = 8.dp, horizontalMargin: Dp = HorizontalBarrier): PopupPositionProvider

Creates a PopupPositionProvider that anchors the popup directly below (or above when there is no room) the anchor, used by dropdown-style list popups.