有多少次都可以在Android的视图的鳍状肢? [英] How many Views are possible in a view flipper in android?

查看:99
本文介绍了有多少次都可以在Android的视图的鳍状肢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发的机器人中,我想告诉约170图像的应用程序,但我想用户可以查看由手指图像向右或向左。从网上搜索后,我得到一个解决方案,因此我不得不使用View脚蹼在我的应用程序,它将正常工作时,图像的计数为15,当计数增加上述15就会死机。 你能告诉我这样做的原因或者是有考虑的鳍状肢的限制,我们不能显示超过15次。

I am developing an application in android in which i want to show about 170 images, but i want user can view images by finger either right or left . After searching from internet i got a solution, therefore i had use View flipper in my application It will work when the counting of images are 15, when the counting increasing above fifteen it will crash. Can you tell me the reason for this or is there a limitation in view flipper that we cannot show more than 15 views.

给我任何suggession为解决我的问题。

Give me any suggession for solve my problem.

在此先感谢!

推荐答案

我建议你使用的 图库 (的多媒体教程),ViewFlipper将加载完整视图在内存中,所以当你装载更多的图像将需要更多的内存,并且有很好的机会的OutOfMemoryError 。照片 用于显示图像画廊是最好的选择。

I suggest you to use Gallery (Gallery tutorial), ViewFlipper will load complete view in memory, so when you load more images it will take more memory and there is good chance for OutOfMemoryError.
For displaying Images Gallery is the best choice

这篇关于有多少次都可以在Android的视图的鳍状肢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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