我是否遗漏了什么或 Fragment
没有 onRestoreInstanceState()
方法?如果没有,我该如何获得类似的东西?
最佳答案
fragment 没有 onRestoreInstanceState
方法。
您可以在 onActivityCreated
中实现相同的结果,它接收具有已保存实例状态(或 null)的包。
查看源代码here .
关于android fragment onRestoreInstanceState,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5412746/