Giter VIP home page Giter VIP logo

Comments (6)

Norbara avatar Norbara commented on May 31, 2024

无此getCurrenPosition()方法 可否开放

from banner.

wenchaosong avatar wenchaosong commented on May 31, 2024

@Wietas banner.setOnPageChangeListener(); 监听这个可以实时获取

from banner.

Norbara avatar Norbara commented on May 31, 2024

@wenchaosong 主要是在外部用到使用viewpager的getCurrentItem;setOnPageChangeListener是确实种方式 需要指定个外部全局变量记录 ;Banner里面有currentItem 看有木有办法开放方法出来 相对方便 或者viewpager开放出来也行

from banner.

wenchaosong avatar wenchaosong commented on May 31, 2024

@Wietas 这个问题是这样的, currentItem 这个值是实时变化的,就需要不断监听它的变化,否则取出的有可能是错误的,毫无意义啊

from banner.

Norbara avatar Norbara commented on May 31, 2024

好吧 ,,,有时间我看源码改吧, 到时候效果方案or代码提给你哈

from banner.

wenchaosong avatar wenchaosong commented on May 31, 2024

@Wietas 好的

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.