android.view.InflateException: Binary XML file line #7: Error inflating class(OOM)

由于页面含有ImageView引起的内存溢出。

 

作如下处理:在OnDestroy中

 

Drawable d = imageView.getDrawable();  
if (d != null) d.setCallback(null);  
imageView.setImageDrawable(null);  
imageView.setBackgroundDrawable(null);

  

posted @ 2016-03-29 18:46  狂奔的小狮子  阅读(1397)  评论(0编辑  收藏  举报