I have viewPager with adapter that override onPageSelected , and i want to prevent the view pager from being selected at last page but swipe-able so when the user leave the finger it will return to previous page .
what is the best way to achive that ?
Thanks in advance !