SyntaxFix
Write A Post
Hire A Developer
Questions
If you only want the position, vp.getCurrentItem() will give it to you, no need to apply the onPageChangeListener() for that purpose alone.
vp.getCurrentItem()