Devlight / InfiniteCycleViewPager

Infinite cycle ViewPager with two-way orientation and interactive effect.
Apache License 2.0
5.75k stars 827 forks source link

Get Every Position #82

Open Androidvinod opened 3 years ago

Androidvinod commented 3 years ago

Hello, How do i get current position from your view pager for every scroll Please Help I am stuck at middle of something.

MikelAguilar commented 3 years ago

In Kotlin:

yourPager.onPageChangeListener { this.onPageSelected { //You will get the current position in the view as Int } }