Nmix wrote: > In a TabActivity I have a tab with a ListView. I manage the > visibility of a View for when the list is empty, done after filling > the list, whenever I know the backing data changes. > > When the list is empty (empty View is visible) and the activity is > paused, and while paused the backing SQLlite table gets filled, when > my activity resumes the ListView gets filled with the new database > rows (managed cursor requery?) but I haven't had the chance to set the > visibility of the empty View, so it's still there. > > I can figure out how to do this with some persistent data from pause > to resume, but I'm wondering if there's a 'cleaner' and automatic way > of achieving this in Android. Thanks.
If the trigger for making your View be visible is the existence of data, perhaps notify-on-change support is what you want. I haven't played with this much myself. -- Mark Murphy (a Commons Guy) http://commonsware.com Android Training in Sweden -- http://www.sotrium.com/training.php --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---