Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当图片超过整个屏幕的时候抛出异常 #4

Open
TonyTangAndroid opened this issue Jun 8, 2016 · 2 comments
Open

当图片超过整个屏幕的时候抛出异常 #4

TonyTangAndroid opened this issue Jun 8, 2016 · 2 comments

Comments

@TonyTangAndroid
Copy link

Hi Bruce, 我测试了如果我把图片等数量加到 20个,这使得一整个屏幕一次性显示不完全,然后发现图片抛出空指针异常。我意识到 你在那里写的注释了,

//NOTE:if imgList.size >= the visible count in single screen,i will cause NullPointException //because item out of screen have been replaced/reused

这是不是意味着图片最开始不能加载超过一定数量?就你所知道的而言,请问有什么办法可以解决这个限制吗?

这个图片浏览效果是我找了很多库之后发现动画效果最好的,所以我想去探索一下。谢谢你的时间!

@brucetoo
Copy link
Owner

是啊 如果超过了一屏幕的图片会计算不到它对应的坐标,所以无法对其做动画效果呀。这个应该没有一个很好的方案解决,因为在进入图片预览界面的时候就应该计算完所有需要执行动画图片的所有坐标信息, 系统如果未绘制图片,自然没对应的坐标信息...或者你找到很好的方案 欢迎PR

@githeer
Copy link

githeer commented Aug 15, 2016

有读取本地图片版本的不,[email protected] ,改了之后没达到预期的效果,谢谢了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants