> hi..
>
> I am making an app where I need to filter the contacts as user types..
> I m using autoTextView and I am able to successfully query the
> contacts db for either tel number or name..
> However while displaying I can either display name or tel number only
> as simple cursor only lets me match one list view with one column..
> How do I merge the name and tel number column of the cursor so that
> both of them can be shown in one list view..

Merge them in the layout. Instead of supplying
android.R.layout.simple_dropdown_item_1line or something like that to your
layout constructor, create a layout of your own design that has the name
and telephone number. Depending on how you do this, this might require
creating a custom adapter.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com
Android App Developer Books: http://commonsware.com/books.html


-- 
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