Giter VIP home page Giter VIP logo

Comments (4)

wenchaosong avatar wenchaosong commented on May 31, 2024

@luhuanxml setOnPageChangeListener
类似 viewpager 的滑动监听

from banner.

luhuanxml avatar luhuanxml commented on May 31, 2024

@luhuanxml setOnPageChangeListener
类似 viewpager 的滑动监听

使用onPageScrolled方法回调处理了该事件,但是在尾部到第一个,和第一个回退到最后一个时,不知道怎么衔接,还有进去后,position是从1开始的。我的banner长度是6个,但是会出现0-7八个数,还是有些问题我的代码如下

image

from banner.

luhuanxml avatar luhuanxml commented on May 31, 2024

前进是1-7,后退是6-0

from banner.

luhuanxml avatar luhuanxml commented on May 31, 2024

谢谢,使用你的方案终于实现了

from banner.

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.