In case anyone else has a similar issue, I found out how to do what I want to do....
http://developer.android.com/reference/android/view/ViewGroup.OnHierarchyChangeListener.html I implemented that interface to know when my view was removed from display, and did my cleanup in there. http://developer.android.com/reference/android/view/ViewGroup.html#setOnHierarchyChangeListener(android.view.ViewGroup.OnHierarchyChangeListener) And I found out freezing and thawing had nothing to do with what I needed. On Sep 25, 1:25 pm, Eddified <[email protected]> wrote: > 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.htm...) > and > herehttp://developer.android.com/reference/android/widget/AdapterView.htm...) > > 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 [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 -~----------~----~----~----~------~----~------~--~---

