SupportFragment
Core implementation contract for fragments, which automatically retains instance, see setRetainInstance for behavior changes
Since
v0.9.X
Parameters
setting this to anything other than ISupportFragment.NO_MENU_ITEM will automatically inflate the given menu in onCreateOptionsMenu and set setHasOptionsMenu to true.
settings this to anything other than ISupportFragment.NO_LAYOUT_ITEM will inflate the given layout automatically in onCreateView.
See also
Inheritors
Properties
Functions
Additional initialization to be done in this method, this is called in during androidx.fragment.app.FragmentActivity.onPostCreate
Called to do initial creation of a fragment. This is called after SupportFragment.onAttach and before SupportFragment.onCreateView.
Initialize the contents of the Fragment host's standard options menu. You should place your menu items in to menu. For this method to be called, you must have first called setHasOptionsMenu. See SupportFragment.onCreateOptionsMenu for more information.
Called to have the fragment instantiate its user interface view. This is optional, and non-graphical fragments can return null. This will be called between onCreate&onActivityCreated.
Called immediately after onCreateView has returned, but before any saved state has been restored in to the view. This gives subclasses a chance to initialize themselves once they know their view hierarchy has been completely created.
Proxy for a view model state if one exists