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


更多相关文章

  1. 代码中设置drawableleft
  2. android 3.0 隐藏 系统标题栏
  3. Android开发中activity切换动画的实现
  4. Android(安卓)学习 笔记_05. 文件下载
  5. Android中直播视频技术探究之—摄像头Camera视频源数据采集解析
  6. 技术博客汇总
  7. android 2.3 wifi (一)
  8. AndRoid Notification的清空和修改
  9. Android中的Chronometer

随机推荐

  1. [android]-记录日志到sd卡
  2. Android系统启动——SystemServer进程启
  3. Talking about Android(安卓)Process
  4. android代码实现ScaleAnimation动画(附原
  5. android收发短信
  6. 自定义的Spinner文字居中
  7. Android(安卓)prototype Q&A video and t
  8. Android(安卓)studio怎样隐藏标题栏
  9. Android(安卓)Studio 1.0正式稳定版下载
  10. 38 Android(安卓)actionbar 简单使用