InputViewDefaults

Contains default values used by InputView.

Properties

Link copied to clipboard

The horizontal content padding inside the card (COUI coui_single_input_card_view.xml paddingStart/End 32dp minus the 16dp coui_preference_input_margin_horizontal card inset).

Link copied to clipboard

The corner radius of the card (COUI couiRoundCornerM = coui_round_corner_m).

Link copied to clipboard

The font size of the single-line inline counter (COUI coui_input_view.xml input_count: 10sp).

Link copied to clipboard

The font size of the error line (COUI couiTextCaption: 10sp).

Link copied to clipboard

The top padding of the error line (COUI coui_card_single_input_padding_top).

Link copied to clipboard

The bottom padding of the field when a title is shown (COUI coui_input_preference_single_title_padding_bottom; top padding is 0, coui_input_edit_text_has_title_padding_top).

Link copied to clipboard

The vertical padding of the field without a title (COUI coui_input_edit_text_no_title_padding_top / _bottom).

Link copied to clipboard
val MaxLines: Int = 5

The default maximum number of lines (COUIInputView / COUICardMultiInputView MAX_LINE).

Link copied to clipboard

The font size of the multi-line counter (COUI couiTextBodyXS: 12sp).

Link copied to clipboard

The bottom margin of the multi-line counter (COUI coui_input_edit_count_margin_bottom).

Link copied to clipboard

The gap between the multi-line field and its counter.

Link copied to clipboard

The vertical padding of the multi-line field (COUI coui_card_multi_edittext_padding).

Link copied to clipboard

The minimum height of the title (COUI coui_inputView_title_minheight).

Link copied to clipboard

The bottom padding of the title (COUI coui_input_preference_title_padding_bottom).

Link copied to clipboard

The top padding of the title (COUI coui_input_preference_single_title_padding_top).

Functions

Link copied to clipboard
fun inputViewColors(cardColor: Color = COUITheme.colorScheme.surfaceContainer, titleColor: Color = COUITheme.colorScheme.onSurface, disabledTitleColor: Color = COUITheme.colorScheme.disabledOnSurface, countColor: Color = COUITheme.colorScheme.onSurfaceVariantActions, errorColor: Color = COUITheme.colorScheme.error): InputViewColors

Default colors used by the InputView.

Link copied to clipboard

The default text style of the title (COUI COUIInputTitleStyle / couiTextAppearanceHeadline6: 16sp, sans-serif-medium).