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. Expose kernel logs to user environment


I am currently writing a module for Android.

In module programming there is only printk but is it possible to show
the kernel messages to the users?

Meaning the user who will be using the Android phone with the module
will be shown the kernel messages.

Thanks In Advance,

2. How to set Image to the ImageView dynamically

hi friends ,
I am facing problem that whenever i am setting the image to a
ImageView dynamically from a file path(not from the Res,drawable),by
using SetImageURI(uri),i am getting one error like
resolve uri failed on bad bitmap uri
so how can i get the image from a file path by using this setImageURI
Thanks and Regards
Murali dhuli

3. Launching another application through the current application

4. Labeling points on a map

5. Can you release the MediaPlayer wake lock when the battery is low?

6. Using Nexus One as a development phone: Problem with USB driver under windows 7 64 bit

7. Always permission denial when trying to read Email Account