Google is committed to advancing racial equity for Black communities. See how.

Autofill

Improve autofill accuracy via extending hints.
Latest Update Current Stable Release Next Release Candidate Beta Release Alpha Release
November 11, 2020 1.0.0 1.1.0-rc01 - -

Declaring dependencies

To add a dependency on Autofill, you must add the Google Maven repository to your project. Read Google's Maven repository for more information.

Add the dependencies for the artifacts you need in the build.gradle file for your app or module:

dependencies {
    implementation "androidx.autofill:autofill:1.0.0"
}

For more information about dependencies, see Add build dependencies.

Feedback

Your feedback helps make Jetpack better. Let us know if you discover new issues or have ideas for improving this library. Please take a look at the existing issues in this library before you create a new one. You can add your vote to an existing issue by clicking the star button.

Create a new issue

See the Issue Tracker documentation for more information.

Version 1.1.0

Version 1.1.0-rc01

November 11, 2020

androidx.autofill:autofill:1.1.0-rc01 is released with no change since 1.1.0-beta01. Version 1.1.0-rc01 contains these commits.

Version 1.1.0-beta01

October 14, 2020

androidx.autofill:autofill:1.1.0-beta01 is released with no changes since 1.1.0-alpha02. Version 1.1.0-beta01 contains these commits.

Version 1.1.0-alpha02

August 19, 2020

androidx.autofill:autofill:1.1.0-alpha02 is released. Version 1.1.0-alpha02 contains these commits.

API Changes

  • Updated the required API version of the autofill inline suggestion library from Q to R (I983a5)
  • InlineSuggestionUi helper added to allow autofill services to generate inline presentations
  • Renderer added to help IME providers to inflate inline presentations sent by autofill services
  • Styling and theming support for IME providers added as part of v1 versioned style API

Version 1.1.0-alpha01

March 18, 2020

androidx.autofill:autofill:1.1.0-alpha01 is released. Version 1.1.0-alpha01 contains these commits.

New Features

  • InlinePresentationBuilder added to help autofill providers to interface with the new keyboard based InlineSuggestionRequest
  • InlinePresentationRenderer added to help keyboard providers to render Slices given by autofill providers
  • InlineSuggestionsHostView added to allow keyboard providers to constrain where the slices are rendered

Version 1.0.0

Version 1.0.0

December 4, 2019

androidx.autofill:autofill:1.0.0 is released. Version 1.0.0 contains these commits.

Major features of 1.0.0

  • First stable version of the autofill module.
  • Adds a standard set of supported autofill hint constants which should be supported by all autofill services.

Version 1.0.0-rc01

October 23, 2019

androidx.autofill:autofill:1.0.0-rc01 is released with no changes since 1.0.0-beta01. Version 1.0.0-rc01 contains these commits.

Version 1.0.0-beta01

September 18, 2019

androidx.autofill:autofill:1.0.0-beta01 is released. Version 1.0.0-beta01 contains these commits.

New features

  • Added support for annotating One Time Password (OTP) fields which can be filled by reading the code from an SMS.
  • Generator function added to get hint constants for single character OTP fields.

Version 1.0.0-alpha02

August 7, 2019

androidx.autofill:autofill:1.0.0-alpha02 is released. The commits included in this version can be found here.

New features

  • New hint constants added to support annotation of SMS One Time Password (OTP) codes.

Version 1.0.0-alpha01

July 2, 2019

This is the first release of androidx.autofill:autofill:1.0.0-alpha01. The commits included in this initial version can be found here.

New features

This is the initial release of autofill AndroidX module. It provides new autofill hint constants added to allow more granular annotation of form fields.