阅读背景:

如何在片段之间切换而不必重新创建每个片段?

来源:互联网 

I currently have 5 fragments that I can switch between but each time I switch, the fragment that becomes active, recreates itself. I want to know how I can make it so that if a fragment is no longer displaying, it's state is still saved in the background so when I come back to this fragment, it is still how it was left. This is the current code that I have..I currently have 5 fragments that I can switch




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: