out of memory
来源:互联网 发布:c语言 函数库啥意思- 编辑:程序博客网 时间:2024/06/03 10:44
Bitmap bm = BitmapFactory.decodeResource(this.getResources(), R.drawable.splash);
BitmapDrawable bd = new BitmapDrawable(this.getResources(), bm);
mBtn.setBackgroundDrawable(bd);
来代替mBtn.setBackgroundResource(R.drawable.splash)。
销毁的时候使用:
BitmapDrawable bd = (BitmapDrawable)mBtn.getBackground();
mBtn.setBackgroundResource(0);//别忘了把背景设为null,避免onDraw刷新背景时候出现used a recycled bitmap错误
bd.setCallback(null);
bd.getBitmap().recycle();
尊重原创:http://blog.csdn.net/micro_rat/article/details/6307067
0 0
- out of memory
- Out of memory
- out of memory
- android out of memory
- out of memory
- MATLAB: OUT OF MEMORY
- MATLAB out of memory
- 解决out of memory
- Out Of Memory
- android Out of memory
- linux out of memory
- matlab out of memory
- thrift out of memory
- Android Out Of Memory
- out of memory
- centos out of memory
- GP Out of memory
- android out of memory
- oracle精确计算出两个时间的间隔
- 国嵌深入班-PCI
- java正则表达式
- 输出一个集合的所有子集合-Java代码实现(二)
- genalloc — 通用内存分配器
- out of memory
- Travelling - HDU 3001 状压dp
- GetMemory错误讲解(指针练习)
- linux下运行netca不能启动监听
- C++/mfc错误总结
- 51单片机的复位电路原理
- hdu 3642 Get The Treasury(扫描线、立方体交)
- 字符串的一些处理
- struts2 session过期或无操作时自动返回登录