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 a MessageWebView whose id is android.R.id.message, a progress view whose id is android.R.id.progress, and can optionally error page with a view id R.id.error.

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.