ViewPager & ImageView zooming issue

前端 未结 5 1581
北海茫月
北海茫月 2020-12-24 03:43

I am trying to implement a Gallery of images using ViewPager. Also, to implement zoom feature in that, I am using TouchImageView from github. I have also tried using Zoomabl

5条回答
  •  抹茶落季
    2020-12-24 04:29

    If someone have a horizontal viewpager, is important change @kirit-vaghela code:

    if(deltaX == 0 || saveScale == 1.0 )
        startInterceptEvent();
    else
        stopInterceptEvent();
    

    To

    if(saveScale == 1.0 )
        startInterceptEvent();
    else
        stopInterceptEvent();
    

    So the adapter's gonna change the picture only when is 1.0

提交回复
热议问题