I have developed an application using viewpager and my class extends fragmentactivity. The app works just fine except that I want to send the application to an activity after the last page of the view pager when the user "flings" the screen.is this possible? please help.

Thanks!

有帮助吗?

解决方案

You could implement the ViewPager.OnPageChangedListener. Inside the onPageScrollStateChanged check if you are on the last page and then call whatever Activity you want.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top