Gobind kumar Gobind kumar - 6 months ago 51
Android Question

ViewPager issue: To finish Activity on swiping last page

I want to finish an

when a user is in last fragment inside of a
view Pager
and try to swipe for next screen.

Thanks in advance.


There isn't any direct way but you can include a blank page at last index of ViewPager. So when user comes to this blank page, which most probably will be a fragment, call activity finish.