标签: android memory imageview
在我的Android应用程序中,我下载图像然后将它们设置为imageviews。现在假设我有对imageview的引用,我是否可以从中获取图像并使用代码手动将其从内存中释放出来?
有人能告诉我怎么做吗?
感谢。
答案 0 :(得分:0)
bitmap=null;
然后,您可以使用BitmapFactory.decodeResource(Resources res, int id)
BitmapFactory.decodeResource(Resources res, int id)
查看Android开发人员博客,了解有关处理图像加载的教程。这是一个很好的资源
Loading large bitmaps