문제

So I have a pretty specific problem that I am not sure how to handle. I am still in development of an Android app, and part of that app involves a ViewPager and a set of Fragments that act as sort of a wizard (submittal of a report) where the last report in the ViewPager is as submit button that sends data back to the report. My problem is when the report is submitted, I need to destroy the ViewPager so that when the user attempts to submit the report again, it is completely new. I am looking for a feasible way to accomplish this.

도움이 되었습니까?

해결책

Create the ViewPager in a separated Activity so when you are done with the Wizard just destory the Activity and call the new Activity with the Main Application. when needed just open the Wizard activity and it will start all over again.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top