Adly
Adly

Reputation: 597

how to implement a custom autocomplete text view android

I want to implement the autocomplete text view but with my own rules and limits

for example if I typed : "allo" and the the adapter has : "akkgg", "gggallop", "aaaa" the result will be "gggallop"

thanks

Upvotes: 0

Views: 2491

Answers (2)

Glockstock
Glockstock

Reputation: 178

Check out this post: http://techdroid.kbeanie.com/2010/04/custom-autocomplete-for-android.html Hope that helps!

Upvotes: 0

nandeesh
nandeesh

Reputation: 24820

you can check the Apidemos AutoComplete4 example. It has a custom filtering. You will have to use runQueryOnBackgroundThread of the adapter and change its behaviour

Upvotes: 1

Related Questions