The type of element that can serve as a dropdown menu anchor.

Summary

Public companion properties

MenuAnchorType

An editable primary anchor of the dropdown menu, such as a text field that allows user input.

android
MenuAnchorType

A non-editable primary anchor of the dropdown menu, such as a read-only text field.

android
MenuAnchorType

A secondary anchor of the dropdown menu that lives alongside an editable primary anchor, such as an icon within an editable text field.

android

Public functions

open String
android

Public companion properties

PrimaryEditable

val PrimaryEditableMenuAnchorType

An editable primary anchor of the dropdown menu, such as a text field that allows user input.

An anchor of this type will open the menu without focus in order to preserve focus on the soft keyboard (IME).

PrimaryNotEditable

val PrimaryNotEditableMenuAnchorType

A non-editable primary anchor of the dropdown menu, such as a read-only text field.

An anchor of this type will open the menu with focus.

SecondaryEditable

val SecondaryEditableMenuAnchorType

A secondary anchor of the dropdown menu that lives alongside an editable primary anchor, such as an icon within an editable text field.

If accessibility services are enabled, an anchor of this type will open the menu with focus. Otherwise, the menu is opened without focus in order to preserve focus on the soft keyboard (IME).

Public functions

toString

open fun toString(): String