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

实现了类似微博长图的浏览吗? #53

Open
jayleco opened this issue May 6, 2017 · 4 comments
Open

实现了类似微博长图的浏览吗? #53

jayleco opened this issue May 6, 2017 · 4 comments

Comments

@jayleco
Copy link

jayleco commented May 6, 2017

长图浏览可以吗?有QQ群吗?大家可以一起集思广益啊

@razerdp
Copy link
Owner

razerdp commented May 6, 2017

大图浏览请用ssiv,如果嫌麻烦,也可以用国人封装过的BigImageViewer

@jayleco
Copy link
Author

jayleco commented May 6, 2017

subsampling-scale-image-view这个我在我的学习项目中用了,有点问题就是非长图的话设置SCALE_TYPE_CENTER_CROP后宽度不能自适应屏幕宽度,就是如果图片宽度小于屏幕宽度的话设置了SCALE_TYPE_CENTER_CROP的话显示的时候图片宽度会刚好等于屏幕宽度,如果图片宽度大于屏幕宽度的话这个显示的时候图片宽度就比屏幕宽,搞了半天也没搞定,不知道怎么能让大于屏幕宽度的图片显示的时候能刚好适应屏幕宽度;麻烦大神能否指点下

@razerdp
Copy link
Owner

razerdp commented May 7, 2017

@jayleco 在BigImageViewer很久以前我就提交过issue:Piasy/BigImageViewer#2

就是来解决图片扩充到全屏的问题的,你可以看看

@jayleco
Copy link
Author

jayleco commented May 7, 2017

感谢大神回复,但是我想问的不是扩充到全屏的问题,因为使用了SCALE_TYPE_CENTER_CROP这个属性后基本上所有图片在宽度上都会满屏显示,但是宽度有的会大于屏幕,在viewpager中就会造成体验不好的情况,例如需要将图片手势移动到最右边才能触发viewpager翻页,我稍后录个gif给您看下

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

No branches or pull requests

2 participants