The Listitem would not be retrieved from the db. It is passed over from another class.
+1
A:
You don't "delete a listitem from a listview". You modify the data held by the ListAdapter
that is supporting the ListView
. If the adapter is an ArrayAdapter
, call remove()
on the ArrayAdapter
. If the adapter is a CursorAdapter
, remove the item from the database and requery()
the Cursor
. And so on.
CommonsWare
2010-08-25 09:41:54
Could you give a sample code?
User358218
2010-08-27 02:48:29