zoukankan      html  css  js  c++  java
  • 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 associated with the fragment

    4.onActivityCreated ---tells the fragment that its activity has completed its own {@link Activity#onCreate Activity.onCreaate}

    5.onStart----------makes the fragment visible to the user (based on its containing activity being started)

    6.onResume-----makes the fragment interacting with the user (based on its containing activity being resumed).

    7. onPause----- fragment is no longer interacting with the user either because its activity is being paused or a fragment operation is modifying it in 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

  • 相关阅读:
    java 学习
    dubbox 学习
    无能的力量 -- 《看见》
    idea 学习
    小问题?
    《密码学》换字式密码破解。(2)
    《密码学》换字式密码、多表替代密码和转置式密码。(1)
    《密码学》 凯撒密码和栅格密码(0)
    Windows 常用消息及含义
    WM消息大全
  • 原文地址:https://www.cnblogs.com/garygou/p/2851010.html
Copyright © 2011-2022 走看看