Hi Thanks for your respond. Can you give me a simplest sample of a class that extends Filter (one that doesn't need to do anything and return the whole result). I found it very confusing and I don't know what to do with that class Filter:
- Where is the data that it need to work with? I can only see constrain in the performFilter() function - For the publishResults() function. What do I need to do with it? I don't see anything like a context that can help me reach out of the class so how can I publish the result? - And for the FilterResults class, isn't the values need to be Object[] or List<Object> because it's said to "Contains all the values computed by the filtering operation. ". Thank you. On Apr 3, 1:36 am, "Romain Guy" <[EMAIL PROTECTED]> wrote: > Hi, > > The best thing to do is indeed to override getFilter() and return a > Filter that will do what you are proposing. The current ArrayAdapter's > Filter simply matches the text against the first characters of each > entry of the array. > > > > On Wed, Apr 2, 2008 at 10:31 PM, AkaZn <[EMAIL PROTECTED]> wrote: > > > Hi > > > I want to somehow emulate the idea T9 Text Input (not it but similar > > to it) and I want to use the AutoCompleteTextView to suggest the user > > the word they can choose. But only overriding the performFiltering > > function of the AutoCompleteTextView class is not enough to do the > > work as use my customize function to do the filter process or at least > > use regex. > > > So how can I customize the filtering process so that I can customize > > the dropdown list of the AutoCompleteTextView? > > > I noticed that in the ArrayAdapter class, there is a getFilter() > > function but I don't know if I can do anything with it. > > > Thank you very much. > > > --------------- > > For those who are not familiar with the T9: > > http://www.t9.com/ > > -- > Romain Guywww.curious-creature.org --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] Announcing the new M5 SDK! http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---