fragment/src/main/java/androidx/fragment/app/Fragment.java
@CallSuper
    public void onCreate(@Nullable Bundle savedInstanceState) {
        mCalled = true;
        restoreChildFragmentState(savedInstanceState);
        if (mChildFragmentManager != null
                && !mChildFragmentManager.isStateAtLeast(Fragment.CREATED)) {
            mChildFragmentManager.dispatchCreate();
        }
    }
/**
     * Called to do initial creation of a fragment.  This is called after
     * {@link #onAttach(Activity)} and before
     * {@link #onCreateView(LayoutInflater, ViewGroup, Bundle)}.
     *
     * <p>Note that this can be called while the fragment's activity is
     * still in the process of being created.  As such, you can not rely
     * on things like the activity's content view hierarchy being initialized
     * at this point.  If you want to do work once the activity itself is
     * created, see {@link #onActivityCreated(Bundle)}.
     *
     * <p>Any restored child fragments will be created before the base
     * <code>Fragment.onCreate</code> method returns.</p>
     *
     * @param savedInstanceState If the fragment is being re-created from
     * a previous saved state, this is the state.
     */
Called to do initial creation of a fragment.  This is called after
#onAttach(Activity) and before
#onCreateView(LayoutInflater, ViewGroup, Bundle).

Note that this can be called while the fragment's activity is
still in the process of being created.  As such, you can not rely
on things like the activity's content view hierarchy being initialized
at this point.  If you want to do work once the activity itself is
created, see  #onActivityCreated(Bundle).

Any restored child fragments will be created before the base
Fragment.onCreate method returns.

@param savedInstanceState If the fragment is being re-created from
a previous saved state, this is the state.
Called to do initial creation of a fragment . This is called after #onAttach ( Activity ) and before #onCreateView ( LayoutInflater ViewGroup Bundle ) . Note that this can be called while the fragment ' s activity is still in the process of being created . As such you can not rely on things like the activity ' s content view hierarchy being initialized at this point . If you want to do work once the activity itself is created see #onActivityCreated ( Bundle ) . Any restored child fragments will be created before the base Fragment . onCreate method returns . @param savedInstanceState If the fragment is being re - created from a previous saved state this is the state .
@CallSuper
    public void onCreate(@Nullable Bundle savedInstanceState) {
        mCalled = true;
        restoreChildFragmentState(savedInstanceState);
        if (mChildFragmentManager != null
                && !mChildFragmentManager.isStateAtLeast(Fragment.CREATED)) {
            mChildFragmentManager.dispatchCreate();
        }
    }
@ CallSuper public void onCreate ( @ Nullable Bundle savedInstanceState ) { mCalled = true ; restoreChildFragmentState ( savedInstanceState ) ; if ( mChildFragmentManager != null && ! mChildFragmentManager . isStateAtLeast ( Fragment . CREATED ) ) { mChildFragmentManager . dispatchCreate ( ) ; } }
Called to do initial creation of a fragment.
Called to do initial creation of a fragment .