Skip to content

Get actual current position of the page #52

@vinayappypiellp

Description

@vinayappypiellp

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)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions