SupportFragmentList
Core implementation for fragments that rely on paginated/non-paginated data sets using standard List collections
Since
v1.2.0
See also
Properties
State configuration for any underlying state representing widgets
Adapter that should be used for the recycler view, by default StateRestorationPolicy is set to StateRestorationPolicy.PREVENT_WHEN_EMPTY
Functions
Additional initialization to be done in this method, this method will be called in androidx.fragment.app.FragmentActivity.onCreate.
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 (which is the default implementation). This will be called between onCreate and onActivityCreated.
Stub to trigger the loading of data, by default this is only called when supportViewAdapter has no data in its underlying source.
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. The fragment's view hierarchy is not however attached to its parent at this point.
Provides a layout manager that should be used by setRecyclerLayoutManager
Sets the adapter for the recycler view
Sets a layout manager to the recycler view
Proxy for a view model state if one exists