public abstract class RestoreViewOnCreateController extends Controller
Controller.LifecycleListener, Controller.RetainViewMode| Modifier | Constructor and Description |
|---|---|
protected |
RestoreViewOnCreateController()
Convenience constructor for use when no arguments are needed.
|
protected |
RestoreViewOnCreateController(android.os.Bundle args)
Constructor that takes arguments that need to be retained across restarts.
|
| Modifier and Type | Method and Description |
|---|---|
protected android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container)
Called when the controller is ready to display its view.
|
protected abstract android.view.View |
onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedViewState)
Called when the controller is ready to display its view.
|
addLifecycleListener, getActivity, getApplicationContext, getArgs, getChildRouter, getChildRouter, getChildRouter, getChildRouters, getInstanceId, getOverriddenPopHandler, getOverriddenPushHandler, getParentController, getResources, getRetainViewMode, getRouter, getTargetController, getView, handleBack, isAttached, isBeingDestroyed, isDestroyed, onActivityPaused, onActivityResult, onActivityResumed, onActivityStarted, onActivityStopped, onAttach, onChangeEnded, onChangeStarted, onContextAvailable, onContextUnavailable, onCreateOptionsMenu, onDestroy, onDestroyView, onDetach, onOptionsItemSelected, onPrepareOptionsMenu, onRequestPermissionsResult, onRestoreInstanceState, onRestoreViewState, onSaveInstanceState, onSaveViewState, overridePopHandler, overridePushHandler, registerForActivityResult, removeChildRouter, removeLifecycleListener, requestPermissions, setHasOptionsMenu, setOptionsMenuHidden, setRetainViewMode, setTargetController, shouldShowRequestPermissionRationale, startActivity, startActivityForResult, startActivityForResult, startIntentSenderForResultprotected RestoreViewOnCreateController()
protected RestoreViewOnCreateController(android.os.Bundle args)
args - Any arguments that need to be retained.protected final android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container)
Controllerreturn inflater.inflate(R.layout.my_layout, container, false);, plus
any binding code.onCreateView in class Controllerinflater - The LayoutInflater that should be used to inflate viewscontainer - The parent view that this Controller's view will eventually be attached to.
This Controller's view should NOT be added in this method. It is simply passed in
so that valid LayoutParams can be used during inflation.protected abstract android.view.View onCreateView(android.view.LayoutInflater inflater,
android.view.ViewGroup container,
android.os.Bundle savedViewState)
return inflater.inflate(R.layout.my_layout, container, false);, plus
any binding and state restoration code.inflater - The LayoutInflater that should be used to inflate viewscontainer - The parent view that this Controller's view will eventually be attached to.
This Controller's view should NOT be added in this method. It is simply passed in
so that valid LayoutParams can be used during inflation.savedViewState - A bundle for the view's state, which would have been created in Controller.onSaveViewState(View, Bundle),
or null if no saved state exists.