add、replace方式:fragment完全销毁重建
add、show、hide方式:不走生命周期,只走onHiddenChanged()回调
viewpage方式:不走生命周期,只走setUserVisVleHint()方法
activity与fragment生命周期
猜你喜欢
转载自blog.csdn.net/QQsongQQ/article/details/82662635
今日推荐
周排行