Contacts has three ways to search:

- By jumping through letters with the thumb.
- By typing lettings on the keyboard to filter.
- By pressing the search key to invoke the search UI and show the filter
results there.

These are all standard parts of the platform, and ideally would be
implemented by any list view with a significant amount of data.

On Wed, Sep 2, 2009 at 1:55 AM, sweet <[email protected]> wrote:

>
> I don't think that contact listview is better because it's juste a
> search about one letter but i know tuto of autocomplet search. Check
> that it may interess you
> (and if you want i can see your code)
>
> the tuto:
>
> http://android-france.fr/2009/04/15/developpez-une-application-pour-android-etape-9-recherche-d%E2%80%99une-recette-avec-autocompletion/
>
> On 2 sep, 10:24, manigault <[email protected]> wrote:
> > I have a listview with cursor adapter and i want to be able to search
> > in the list view. I implemented my own search : i implement
> > TextWatcher interface and when the text is changed i make a new query
> > to the db to obtain a new cursor and than refresh the listview content
> > it works but it is too slow and its not the android way :). There is
> > also another way to implement Filtarable in the adapter for the
> > listview on than setTextFilterEnabled(true) but i think the
> > performance will be the same. So the question is what is the best way
> > to implement search for a listview and can i use the default search
> > ( in contacts listview for example with the scrollbar that shows the
> > letter)
> > Thanks in advance.
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to