程序中使用了TijiaoFragment和tijiaoFailFragment,下面打印了创建TijiaoFragment触发的事件
10-18 18:26:59.366 26483-26483/? I/System.out: TijiaoFragment----------
10-18 18:26:59.366 26483-26483/? I/System.out: tijiaoFaileFragment----------
10-18 18:26:59.366 26483-26483/? I/System.out: tijiaoFaileFragment setUserVisibleHint----------false
10-18 18:26:59.376 26483-26483/? I/System.out: TijiaoFragment onCreate----------
10-18 18:26:59.376 26483-26483/? I/System.out: TijiaoFragment onCreateView----------
10-18 18:26:59.376 26483-26483/? I/System.out: TijiaoFragment onActivityCreated----------
10-18 18:26:59.376 26483-26483/? I/System.out: tijiaoFaileFragment onCreate----------
10-18 18:26:59.376 26483-26483/? I/System.out: tijiaoFaileFragment onCreateView----------
10-18 18:26:59.376 26483-26483/? I/System.out: tijiaoFaileFragment onActivityCreated----------
下面打印了 从TijiaoFragment转到tijiaoFailFragment的事件触发
10-18 18:27:00.256 26483-26483/? I/System.out: tijiaoFaileFragment setUserVisibleHint----------true
有好的一篇博客分享懒加载
网友评论