--ADVERTISEMENT--

In this tutorial, I am going to show how to develop auto complete suggestion in android using AutoCompleteTextView and MultiAutoCompleteTextView without typing all characters of word. AutoCompleteTextView suggests a word to the user and MultiAutoCompleteTextView suggests multiple words. These both auto complete textview completes the words which are stored in the program.

In the XML layout file, I have placed a AutoCompleteTextView and a MultiAutoCompleteTextView to develop auto complete sentence application.

Related:
Android Floating Labels for EditText Using Design Support Library
How to Implement Ripple Effect in Android
Load Image from URL (Internet) in Android

Android Auto Complete Word Example using AutoCompleteTextView and MultiAutoCompleteTextView


XML Layout File

res/layout/autocomplete_android.xml

Java Activity File

src/AutoCompleteAndroid.java

Strings.xml File

res/values/strings.xml

Now, run your Auto Complete android application and type the words which are stored in java file.

Output:

Android Auto Complete using AutoCompleteTextView and MultiAutoCompleteTextView
AutoCompleteTextView

Android Auto Complete using AutoCompleteTextView and MultiAutoCompleteTextView
AutoCompleteTextView

Post a Comment

Powered by Blogger.