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.

C#
public virtual bool SaveFromParentEnabled { [Android.Runtime.Register("isSaveFromParentEnabled", "()Z", "GetIsSaveFromParentEnabledHandler")] get; [Android.Runtime.Register("setSaveFromParentEnabled", "(Z)V", "GetSetSaveFromParentEnabled_ZHandler")] 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

Produkt Wersje
.NET for Android .NET for Android API 34, .NET for Android API 35

See also