Fragment具有属性retainInstance,默认值为false。 当设备旋转时,fragment会随托管activity一起销毁并重建。 调用setRetainInstance(true)方法可 ...
確定! 回上一頁