Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Case insensitive auto complete in android

I am using the example from http://developer.android.com/resources/tutorials/views/hello-autocomplete.html. Is there a way i can make it case insensitive ? I dont want to double my array size by adding every possible version of the string.

PS : Is there a way i can manage non English text in here? My android keyboard is English.

like image 765
Jaseem Avatar asked Dec 29 '11 12:12

Jaseem


1 Answers

I feel this link will help you, Custom AutoComplete Adapter

In this approach you define a custom adapter for being used in the AutoCompleteTextView, this adapter is filtered by a custom filter which is also define by you.

I have tried this and it works.

I hope it helps..

like image 154
R.daneel.olivaw Avatar answered Oct 17 '22 03:10

R.daneel.olivaw