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

  • 相关阅读:
    记事本+hhc生成CHM
    在Delphi里实现[int map string]对
    U盘插入拔出提示
    Delphi研发笔试试卷 我的小解
    Excel也能用SQL查询
    访问JAVA中的字段(jfieldID)
    调用JAVA方法
    缓存字段ID和方法ID
    JNI引用
    访问数组(JNI)
  • 原文地址:https://www.cnblogs.com/garygou/p/2851010.html
Copyright © 2011-2022 走看看