简体   繁体   English

动态浏览器

[英]Dynamic Viewpager

Is it possible to have a Viewpager that knows what the current, next and previous page is and when I swipe either way the state changes so there always will be max 3 pages? 是否可以有一个Viewpager知道当前,下一页和上一页是什么,当我以任何一种方式滑动时,状态都会改变,因此总会有3页?

Hope you get the point 希望你明白了

ViewPager has the OnPageListener . ViewPager具有OnPageListener the onPageSelected gives you the position of the current page selected onPageSelected为您提供当前所选页面的位置

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM