Skip to main content
Logo Appt Light

Input content type on Android

Setting the content type for input fields helps user entering data. For example, an e-mail address and password can be autofilled by a password manager. When the content type has not been set, this might not be possible to do automatically.

On Android, you can set a content type by using the android:optimizeForAutoFill property.

The following values are defined:

Example of using autofillHints:

<EditText
    android:autofillHints="emailAddress" />

Feedback?

Let us know!