I don't have an example exactly for this case, but you can see the interaction between a MultiAutoCompleteTextView and the adapter, in the platform's email application.

http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=summary

The file you want is EmailAddressAdapter:

http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=blob;f=src/com/android/email/EmailAddressAdapter.java;h=ec11717bcbadd403751e99925195dabe75dd7605;hb=refs/heads/froyo

The Donut version is a bit easier to read:

http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=blob;f=src/com/android/email/EmailAddressAdapter.java;h=45636c0b9307f01bee87118457844c3f6792abd7;hb=refs/heads/donut

Here is another example:

http://thinkandroid.wordpress.com/2010/02/08/writing-your-own-autocompletetextview/

-- Kostya

04.02.2011 11:40, svebee пишет:
Can you post some basic example how could I integrate it into my case?

On Feb 2, 9:30 am, Kostya Vasilyev<kmans...@gmail.com>  wrote:
You could implement your own filter, by overriding getFilter() in your
adapter, and implementing a Filter that does what you want.

http://developer.android.com/reference/android/widget/Filterable.html...()

(various adapter classes implement Filterable)

http://developer.android.com/reference/android/widget/Filter.html

(this is what does the filtering)

-- Kostya

02.02.2011 10:50, svebee пишет:









I have a (array) list
Car
Something
Šibica
Čavao
Cavao
Is there a way to "force" AutoCompleteTextView so if user type in
letter "c" it would show
Car
Čavao
Cavao
so it would show standard letter and international letter (C and Č/Ć,
S and Š, Z and Ž, D and Đ).
--
Kostya Vasilyev -- WiFi Manager + pretty widget --http://kmansoft.wordpress.com


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to