位图大小超过VM预算 [英] Bitmap size exceeds VM budget

查看:91
本文介绍了位图大小超过VM预算的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

其实我使用的背景图片的所有图像(这些被下载的图像),图像是不同的大小,以便保持这个形象,以适应该INSITE背景图片我使用缩放创造了bitmap.i 38的形象,我需要显示一个一个当我preSS Next按钮以及返回按钮在XML中使用imageid想过去单一XML中的所有图片38,在这种情况下,它显示的位图超出预算VM

Actually am using background image for all image(these are downloaded image),images are in different size so to keep this image to fit insite that background image am using create scaled bitmap.i have 38 image ,i need to display one by one when i press nextbutton as well backbutton By using imageid in xml am passing all 38 images in single xml,in this case its showing Bitmap Exceeds VM Budget

推荐答案

只有你所需要的显示在屏幕上一次加载到内存?不要创建位图的数组,或者资源设置为ViewFlipper每个视图,只是有一个viewIndex和一套单一的资源已经分配的某种和开关(准备填充)来加载你所需要的在屏幕上任何给定的时间?这是我发现帮助的情况嘛。

Only have what you need visible on screen loaded into memory at one time? Don't create an array of bitmaps, or set the resources to each view in ViewFlipper, just have a viewIndex and a single set of resources already allocated (ready to be populated) of some kind and a switch to load what you need onscreen at any given time? This is the only thing I've found to help with the situation.

这篇关于位图大小超过VM预算的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆