Giter VIP home page Giter VIP logo

Comments (4)

zhpanvip avatar zhpanvip commented on May 30, 2024

你好,请问你是在demo中出现的还是在项目中出现的,我在demo中测试了半个小时,各种PageStyleTransfomerStyle都尝试了并没有出现position错乱的情况。是否可以提供详细的复现流程以便排查和修复相关问题?或者你也可以扫描README末尾附带QQ群二维码加群详细交流。期待回复。

from bannerviewpager.

ZQ173 avatar ZQ173 commented on May 30, 2024

周六大晚上的,那么晚还在维护此项目,辛苦了。我设置的动画如下:
setPageTransformerStyle(TransformerStyle.DEPTH)
下午再测试了一遍,发现还和 setPageMargin 参数有关系。
在开启动画的时候,要记得 setPageMargin,不然点击出来的 position 就不对。
使用 demo 中的 HomeFragment 页面,把 setPageMargin(BannerUtils.dp2px(10)) 注释掉后,position 就是 0、1、3、3 了。

from bannerviewpager.

zhpanvip avatar zhpanvip commented on May 30, 2024

按着你的步骤注释掉setPageMargin(BannerUtils.dp2px(10)),打印的position跟点击的position依然是正确的呀

from bannerviewpager.

zhpanvip avatar zhpanvip commented on May 30, 2024

Fix in v2.6.0

from bannerviewpager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.