listview search

by manigault » Wed, 02 Sep 2009 16:25:08 GMT

Sponsored Links
 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
Thanks in advance.

listview search

by sweet » Thu, 03 Sep 2009 02:20:16 GMT

 check that %E2%80%99une-recette-avec-autocompletion/


Sponsored Links

listview search

by sweet » Thu, 03 Sep 2009 02:25:37 GMT

 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: %E2%80%99une-recette-avec-autocompletion/


listview search

by Dianne Hackborn » Thu, 03 Sep 2009 02:58:30 GMT

 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.

Dianne Hackborn
Android framework engineer

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.


listview search

by manigault » Thu, 03 Sep 2009 16:22:55 GMT

 Thanks for the reply. How can i implement the search scrollbar that
shows the first letter of the item in the listview.


Other Threads

1. Does Android support detecting right/left click on the mouse

Hi guys,

I want to write an Android application using a mouse (like the way
that Windows detects the actions of clicking on a right button and a
left button of the mouse). However, I cannot find any library of
Android OS detecting these actions.

Please tell me whether I can do it with the support of Android OS or
anything else.

Thanks for your attention!

Best regards,


2. Is it possible to connect to a local dev server using Phone connected to debugger?

Yep, you do. Also if you are connected via USB to your PC, the USB
interface does not show up at a ethernet interface. Of course you
might be able to tweak the platform code to use the USB interface as
an ethernet interface.

Find some information about USB networking at

Roman Baumgaertner
Sr. SW Engineer-OSDC
T  Mobile stick together
The views, opinions and statements in this email are those of the
author solely in their individual capacity, and do not necessarily
represent those of T-Mobile USA, Inc


3. Context menu creation

4. Running Linux Commands

5. Android Multi Touch and Single touch app development

6. IPSec and IKEv2 support in Android

7. Custom view asking login details