View State Cache
Handles persistence chores for container views that manage a set of Named renderings, showing a view for one at a time -- think back stacks or tab sets.
This class implements Parcelable so that it can be preserved from a container view's own View.saveHierarchyState method. A simple container can return SavedState from that method rather than creating its own persistence class.
Container views using this class must call attachToParentRegistry and detachFromParentRegistry when they are attached and detached, respectively.
Constructors
Types
Convenience for use in View.onSaveInstanceState and View.onRestoreInstanceState methods of container views that have no other state of their own to save.
Functions
Must be called whenever the owning view is attached to a window. Must eventually be matched with a call to detachFromParentRegistry.
Must be called whenever the owning view is detached from a window. Must be matched with a call to attachToParentRegistry.
Replaces the state of the receiver with that of from. Typical usage is to call this from a container view's View.onRestoreInstanceState.