Wednesday, December 19, 2012

[android-developers] Bad View Behavior with Changing ListViews

Hey guys,

I'm having some funny issues with my ListViews. Generally, I have a ListView activity where the list view takes up the entire activity. The list views are using a custom SimpleCursorAdapter and are using the supportLoaderManager to load in the data. The Loaders are connected to Observers and the data can be changed by background services. I'm getting some weird behavior when the data changes.

When the data changes, I am doing an adapter.swapCursor( null ) while the new data is loading.

When the list gets shorter, I'm getting black areas where the previous views where, and sometime I'm getting ~ghosting of older views if the removed views are at the bottom of the list. Is there some way to enforce invalidation or removal of these views?

Is there some step I'm missing?

Thanks!

E

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate