android fragment执行流程
1. onAttach ------called once the fragment is associated with its activity
2. onCreate-------called to do initial creation of the fragment
3. onCreateView---creates and returns the view hierarchy associatedwith the fragment
4.onActivityCreated ---tells the fragment that its activity hascompleted its own {@link Activity#onCreate Activity.onCreaate}
5.onStart----------makes the fragment visible to the user (based on itscontaining activity being started)
6.onResume-----makes the fragment interacting with the user (based on itscontaining activity being resumed).
7. onPause----- fragment is no longer interacting with the user eitherbecause its activity is being paused or a fragment operation is modifying itin the activity.
8.onStop------fragment is no longer visible to the user either because its activity is being stopped or a fragment operation is modifying it in the activity.
9.onDestroyView ------allows the fragment to clean up resources associated with its View.
10.onDestroy---------called to do final cleanup of the fragment's state.
11.onDetach--------called immediately prior to the fragment no longer being associated with its activity
更多相关文章
- 代码中设置drawableleft
- android 3.0 隐藏 系统标题栏
- Android开发中activity切换动画的实现
- Android(安卓)学习 笔记_05. 文件下载
- Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
- 技术博客汇总
- android 2.3 wifi (一)
- AndRoid Notification的清空和修改
- Android中的Chronometer