<分区>
Possible Duplicate:
ViewPager and fragments — what's the right way to store fragment's state?
如何保存 fragment ? (它位于 Activity 中)当我旋转屏幕时, Activity 被重新启动, fragment 被重新创建
<分区>
Possible Duplicate:
ViewPager and fragments — what's the right way to store fragment's state?
如何保存 fragment ? (它位于 Activity 中)当我旋转屏幕时, Activity 被重新启动, fragment 被重新创建
最佳答案
尝试在 fragment 的 onCreate 中使用 setRetainInstance(true);
关于android - 我怎样才能保存 fragment ?当我旋转屏幕时,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12263503/