【发布时间】:2012-10-31 00:33:54
【问题描述】:
我正在使用兼容包中的DialogFragment。我有一个Bitmap,在对话框关闭时我需要回收它,但是当我在onDestroyView() 中调用findViewByID() 时,它返回null。我还尝试保留对来自 onCreateView() 的视图的引用,但在调用 onDestroyView() 时它也为空。
片段关闭时如何回收DialogFragment 中的位图?
【问题讨论】:
标签: android bitmap fragment recycle