onCreateView

open fun onCreateView(inflater: LayoutInflater, container: ViewGroup, savedInstanceState: Bundle): View

Subclasses can override to replace with their own layout. If doing so, the returned view hierarchy must have an AbsListView (GridView or ListView) whose id is android.R.id.list.

Return

Return the View for the fragment's UI, or null.

Parameters

inflater

The LayoutInflater object that can be used to inflate any views in the fragment,

container

If non-null, this is the parent view that the fragment's UI should be attached to. The fragment should not add the view itself, but this can be used to generate the LayoutParams of the view.

savedInstanceState

If non-null, this fragment is being re-constructed from a previous saved state as given here.