Hold the Fragment state after the rotation

前端 未结 0 889
谎友^
谎友^ 2021-01-18 03:20

I have a fragment with ViewPager. I\'m trying to save the information which tab was selected so that it can be retrieved correctly when rotating screen. This is my code:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题