...
Cursor c = ppp.getAll();

String[] from = new String[] {"name","gender","address"};

int[] to = new int[] { R.id.text1,R.id.text2,R.id.text3};

SimpleCursorAdapter peoples = new SimpleCursorAdapter
(this,R.layout.money_row, c, from, to);

setListAdapter(peoples );

i get the data from database, and list it in listview, now it can
display normally with all textview.

the gender field, it display text also, i want to replace it with
icon. how can i do it?

thanks.
--~--~---------~--~----~------------~-------~--~----~
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