[mono-android] Disposing method in View

Matthew Leibowitz mattleibowmail at gmail.com
Mon Jun 18 14:16:03 UTC 2012


Hi all,

As my last question suggested, I am working with images. I cache the lo res
in an array member of a view, but how do I dispose of the images?
I tried overriding the Dispose(bool) method, but that doesn't seem to be
called when the Activity is closed.

What am I doing wrong? :) Is there another method/place?

The "dispose" should be called when the containing activity is closed, but
I don't want either the Activity or the View to know about each other.
This is because they are used in a few places, but in slightly different
ways.

Matthew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/monodroid/attachments/20120618/d890f4e1/attachment.html>


More information about the Monodroid mailing list