Android Open Source - AndroidLifecyle Fragment Lifecycle Callbacks






From Project

Back to project page AndroidLifecyle.

License

The source code is released under:

Apache License

If you think the Android project AndroidLifecyle listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.cocosw.lifecycle;
/*from   w  w  w  .j a va2 s  . c om*/
import android.app.Activity;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
* Project: AndroidLifeCycleCallback
* Created by LiaoKai(soarcn) on 14-3-17.
*/
public interface FragmentLifecycleCallbacks {
    void onFragmentCreated(Fragment fragment,
                           Bundle savedInstanceState);

    void onFragmentStarted(Fragment fragment);

    void onFragmentResumed(Fragment fragment);

    void onFragmentPaused(Fragment fragment);

    void onFragmentStopped(Fragment fragment);

    void onFragmentSaveInstanceState(Fragment fragment,
                                     Bundle outState);

    void onFragmentDestroyed(Fragment fragment);

    void onFragmentAttach(Fragment fragment,
                          Activity activity);

    void onFragmentDetach(Fragment fragment);

    void onFragmentActivityCreated(Fragment fragment,
                                   Bundle savedInstanceState);

    void onFragmentCreateView(Fragment fragment,
                              LayoutInflater inflater,
                              ViewGroup container,
                              Bundle savedInstanceState);

    void onFragmentViewCreated(Fragment fragment,
                               View view,
                               Bundle savedInstanceState);
}




Java Source Code List

com.cocosw.lifecycle.ActivityLifecycleCallbacksAdapter.java
com.cocosw.lifecycle.ActivityLifecycleCallbacksCompat.java
com.cocosw.lifecycle.ActivityLifecycleCallbacksWrapper.java
com.cocosw.lifecycle.FragmentLifecycleCallbacksAdapter.java
com.cocosw.lifecycle.FragmentLifecycleCallbacks.java
com.cocosw.lifecycle.LifecycleDispatcher.java
com.cocosw.lifecycle.app.Activity.java
com.cocosw.lifecycle.app.FragmentActivity.java
com.cocosw.lifecycle.app.Fragment.java