I've noticed that my gallery (which overrides android.widget.Gallery)
is disposing of my custom View objects once they are off the screen,
and re-creating them when they come back into view. I've overridden
"removeView" on my custom Gallery to have more control over disposing
of these views, but it isn't getting called, so I suspect this has to
do with "freezing" and "thawing" views as spoken of here:

http://developer.android.com/reference/android/widget/AdapterView.html#dispatchRestoreInstanceState(android.util.SparseArray%3Candroid.os.Parcelable%3E)
and here
http://developer.android.com/reference/android/widget/AdapterView.html#dispatchSaveInstanceState(android.util.SparseArray%3Candroid.os.Parcelable%3E)

Those two functions talk about preventing thawing and freezing.
However, I don't want to prevent thawing and freezing, I just want to
have more control over freezing, if that's what is happening to my
views off-screen.

What I want to do is perform some custom cleanup (recycling bitmaps,
specifically) when a view is offscreen. How can I accomplish this?


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

Reply via email to