Moto wrote:
> Let me add to the blog:
> 
> How can I:  if item was deleted and there are no items left on the
> list... How could this custom adapter know this happen? I want to set
> a different view based on that case...

The data source for the Cursor (SQLiteDatabase, ContentProvider, etc.)
is hopefully notifying the Cursor of data changes.

Worst-case, call requery() on the Cursor.

Either way, the list should update itself to match.

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