Sdílet prostřednictvím


View.SaveFromParentEnabled Property

Definition

Indicates whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent. -or- Controls whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent.

public virtual bool SaveFromParentEnabled { [Android.Runtime.Register("isSaveFromParentEnabled", "()Z", "GetIsSaveFromParentEnabledHandler")] get; [Android.Runtime.Register("setSaveFromParentEnabled", "(Z)V", "GetSetSaveFromParentEnabled_ZHandler")] set; }
[<get: Android.Runtime.Register("isSaveFromParentEnabled", "()Z", "GetIsSaveFromParentEnabledHandler")>]
[<set: Android.Runtime.Register("setSaveFromParentEnabled", "(Z)V", "GetSetSaveFromParentEnabled_ZHandler")>]
member this.SaveFromParentEnabled : bool with get, set

Property Value

Returns true if the view state saving from parent is enabled, else false.

Attributes

Remarks

Property getter documentation:

Indicates whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent. The default is true; if false, these views will not be saved unless #saveHierarchyState(SparseArray) is called directly on this view.

Java documentation for android.view.View.isSaveFromParentEnabled().

Property setter documentation:

Controls whether the entire hierarchy under this view will save its state when a state saving traversal occurs from its parent. The default is true; if false, these views will not be saved unless #saveHierarchyState(SparseArray) is called directly on this view.

Java documentation for android.view.View.setSaveFromParentEnabled(boolean).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

See also