Input content type - Android
On Android, you can set a content type by using the android:autofillHints
property.
The following values are defined:
creditCardExpirationDate
: auto-fillcredit card expiration datecreditCardExpirationDay
: credit card expiration daycreditCardExpirationMonth
: credit card expiration monthcreditCardExpirationYear
: credit card expiration yearcreditCardNumber
: credit card numbercreditCardSecurityCode
: credit card security codeemailAddress
: email addressname
: namepassword
: passwordphone
: phone numberpostalAddress
: postal addresspostalCode
: postal codeusername
: username
Example of using autofillHints
:
<EditText
android:autofillHints="emailAddress" />