从实现原理上讲,主要就是利用了 fragment.setRetainInstance(true) 。如此一来,这个 fragment 就能够跨越 activity 的生命周期。 以下源码使用1.1.1 ...
確定! 回上一頁