onCreateView

public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)

Called when the fragment's view is being created. Inflates the layout for the fragment.

Return

The View for the fragment's UI.

Parameters

inflater

The LayoutInflater object to inflate the view.

container

The parent view that the fragment's UI will be attached to.

savedInstanceState

If the fragment is being re-constructed from a previous saved state.