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
letter)
Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~



listview search

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


 check that
 http://android-france.fr/2009/04/15/developpez-une-application-pour-android-etape-9-recherche-d %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:
 http://android-france.fr/2009/04/15/developpez-une-application-pour-android-etape-9-recherche-d %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
hack...@android.com

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. Android 2.x - Only for the in-crowd

So it looks like we're on the brink of another Android 2.x release where you 
can get hardware running it before the source code to build it. To me this 
raises some questions;

- Are we now in the position where a select few companies get the advantage of 
access to pre-relase versions of (and SDKs for) new major releases, thus 
leaving most developers supporting hardware and an Android version they can't 
test for prior to consumers buying it?

- Have Google bowed to OEMs by not making details of major Android releases 
available prior to hardware releases?

- Has Android become more "throw it over the fence when we're done" than 
"everyone can contribute" open source?

What do people think?

Al.

--

* Looking for Android Apps? - Try http://andappstore.com/ *

======
Funky Android Limited is registered in England & Wales with the company number  
6741909. 

The views expressed in this email are those of the author and not necessarily 
those of Funky Android Limited, it's associates, or it's subsidiaries.

--

2. Nine patch pre-scaling on Hdpi

Hello everyone,

I have some 9-patch images on my app, and they work great on the
medium density.
When I load the app on a High density emulator/device, these images
look grainy.
It happens only to 9-patch images. The others look great after the pre-
scaling.
Is there a way to make them look good after the scaling, like the
non-9-patch images?

Thanks

3. AppWidget is not updating

4. MapView Overlay problem

5. startActivityForResult & singleTop.

6. Gstreamer on Android error

7. Do the functions of getsize() and getPressure() work now?