Data Persistence ViewPager

后端 未结 2 955
谎友^
谎友^ 2020-12-21 06:16

I am using ViewPager to show the multiple views of the form, like name and email on first view and rest on others.

Now the problem is:

  • E
2条回答
  •  暖寄归人
    2020-12-21 06:53

    I think ViewPager is fine for this purpose. All you need to do is to save data entered in first and second fragments to your parent Activity and fetch it when you hit Save in your last fragment.

    EDIT: Check THIS and THIS related SO questions

提交回复
热议问题