Thanks for your reply,I will try it.

On Jul 26, 2009 6:00 PM, "Mark Murphy" <[email protected]> wrote:

JUN wrote: > ... > Cursor c = ppp.getAll(); > > String[] from = new String[]
{"name","gender","add...
http://developer.android.com/reference/android/widget/SimpleCursorAdapter.html

Option #1: Attach a SimpleCursorAdapter.ViewBinder via setViewBinder(),
replace R.id.text2 with R.id.this_is_an_image_view (or whatever you want
to call it), and have the ViewBinder associate the icon.

Option #2: Extend your SimpleCursorAdapter and implement setViewImage().
You will also need to replace R.id.text2 with R.id.this_is_an_image_view
(or whatever you want to call it).

Option #3: Extend your SimpleCursorAdapter and implement bindView(), and
in there populate all your widgets for a given row by hand.

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://twitter.com/commonsguy

Android Development Wiki: http://wiki.andmob.org


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" 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-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to