InfiniteViewPager icon indicating copy to clipboard operation
InfiniteViewPager copied to clipboard

Get actual current position of the page

Open vinayappypiellp opened this issue 6 years ago • 1 comments

Is there any metghod to get actual current position method, pager.getCurrentRealPosition() is not providing me actual position, and i have call setCurrentRealPosition at last of currentItem method.

override fun setCurrentItem(item: Int, smoothScroll: Boolean) { var item = item if (adapter!!.count == 0) { super.setCurrentItem(item, smoothScroll) return } item = offsetAmount + item % adapter!!.count super.setCurrentItem(item, smoothScroll) setRealCurrentItem(item, true) }

vinayappypiellp avatar Oct 10 '19 14:10 vinayappypiellp

@vinayappypiellp you can get the current position by InfiniteViewPager's getCurrentItem() method

narendrappal avatar Dec 18 '19 17:12 narendrappal