DropdownDefaults

Properties

Link copied to clipboard

Size of the up-down arrow rendered by DropdownArrowEndAction (native box of COUI coui_pop_up_next_normal.xml, a 14x24dp vector).

Link copied to clipboard

Size of the trailing check icon shown on the selected option (COUI coui_popup_list_window_checkbox_width).

Link copied to clipboard

Padding between the title/summary block and the trailing check icon (COUI popup_list_window_item_title_end_gap, an 8dp Space in coui_popup_list_window_item.xml).

Link copied to clipboard

Size of the trailing chevron shown on rows that own a submenu (native box of COUI coui_btn_next_normal.xml, a 12x24dp vector).

Link copied to clipboard

Horizontal padding of each row in dialog mode.

Link copied to clipboard

Top/bottom padding applied to the first/last row in popup mode: COUI coui_popup_list_window_item_padding_top_and_bottom (8dp) plus the list inset coui_popup_list_padding_vertical (2dp) that COUI DefaultAdapter folds into the edge rows.

Link copied to clipboard

Group header line limit (COUI coui_popup_list_window_header_item.xml maxLines).

Link copied to clipboard

Padding between the trailing hint slot and the selection indicator (COUI popup_list_window_item_hint_end_gap, a 4dp Space in coui_popup_list_window_item.xml).

Link copied to clipboard

Maximum width of the trailing hint slot (COUI popup_list_window_item_hint_layout couiMaxWidth in coui_popup_list_window_item.xml).

Link copied to clipboard

Padding between the leading icon cell and the title text (COUI coui_popup_list_window_item_icon_margin_right).

Link copied to clipboard

Minimum size of the leading icon cell (COUI coui_popup_list_window_item.xml icon, a 24dp ImageView).

Link copied to clipboard

Horizontal padding of each row in popup mode (COUI coui_popup_list_window_item_icon_margin_left, used as both paddingStart and paddingEnd in coui_popup_list_window_item.xml).

Link copied to clipboard

Maximum width of the inner text/icon row when the dropdown is shown in popup mode (COUI coui_popup_list_window_item_max_width; applied as maxWidth on the title/description text views in coui_popup_list_window_item.xml).

Link copied to clipboard

Top/bottom padding applied to middle rows in popup mode and to all rows in dialog mode (COUI coui_popup_list_window_item_padding_top_and_bottom).

Link copied to clipboard

Minimum row height when the dropdown is shown in dialog mode (COUI alert_dialog_list_item_min_height).

Link copied to clipboard

Minimum row width when the dropdown is shown in dialog mode.

Link copied to clipboard

Color of the 4dp group divider band between dropdown groups in popup mode (COUI coui_popup_list_group_divider_color #14000000). The resource has no values-night override, so COUI renders the same translucent black band in both light and dark themes.

Link copied to clipboard

Thickness of the group divider band (COUI coui_popup_list_group_divider_height).

Link copied to clipboard

Minimum height of a DropdownHeaderItem group header row, vertical padding included (COUI coui_popup_list_window_header_item_min_height).

Link copied to clipboard

Minimum height of each option row in popup mode, vertical padding included (COUI coui_popup_list_window_item_min_height). Matching COUI DefaultAdapter.configItemVerticalPadding, the first/last rows additionally grow by the folded-in list inset (coui_popup_list_padding_vertical), i.e. by FirstLastVerticalPadding - MiddleVerticalPadding per affected edge.

Link copied to clipboard

Summary line limit (COUI DefaultAdapter.setDescription).

Link copied to clipboard

Title line limit on a row without a summary (COUI DefaultAdapter.setTitle).

Link copied to clipboard

Title line limit on a row that also shows a summary (COUI DefaultAdapter.setTitle).

Functions

Link copied to clipboard
fun dialogDropdownColors(contentColor: Color = COUITheme.colorScheme.onSurfaceContainer, summaryColor: Color = COUITheme.colorScheme.onSurfaceVariantSummary, containerColor: Color = Color.Transparent, selectedContentColor: Color = COUITheme.colorScheme.onTertiaryContainer, selectedSummaryColor: Color = COUITheme.colorScheme.onTertiaryContainer, selectedContainerColor: Color = COUITheme.colorScheme.tertiaryContainer, selectedIndicatorColor: Color = COUITheme.colorScheme.onTertiaryContainer, disabledContentColor: Color = COUITheme.colorScheme.disabledOnSecondaryVariant, alertContentColor: Color = COUITheme.colorScheme.error, headerColor: Color = COUITheme.colorScheme.onSurfaceSecondary): DropdownColors
Link copied to clipboard
fun dropdownColors(contentColor: Color = COUITheme.colorScheme.onSurfaceContainer, summaryColor: Color = COUITheme.colorScheme.onSurfaceSecondary, containerColor: Color = Color.Transparent, selectedContentColor: Color = COUITheme.colorScheme.primary, selectedSummaryColor: Color = COUITheme.colorScheme.onSurfaceSecondary, selectedContainerColor: Color = Color.Transparent, selectedIndicatorColor: Color = COUITheme.colorScheme.primary, disabledContentColor: Color = COUITheme.colorScheme.disabledOnSecondaryVariant, alertContentColor: Color = COUITheme.colorScheme.error, headerColor: Color = COUITheme.colorScheme.onSurfaceSecondary): DropdownColors

Default popup row colors, matching COUI coui_popup_list_window_item_tint_selector (default couiColorLabelPrimary, selected couiColorLabelTheme, disabled couiColorLabelTertiary). Summaries always use couiColorLabelSecondary, and row containers stay transparent — the popup surface provides the fill.