Preference.ShouldDisableView Property

Definition

Checks whether this Preference should disable its view when it's action is disabled. -or- Sets whether this Preference should disable its view when it gets disabled.

public virtual bool ShouldDisableView { [Android.Runtime.Register("getShouldDisableView", "()Z", "GetGetShouldDisableViewHandler")] get; [Android.Runtime.Register("setShouldDisableView", "(Z)V", "GetSetShouldDisableView_ZHandler")] set; }
[<get: Android.Runtime.Register("getShouldDisableView", "()Z", "GetGetShouldDisableViewHandler")>]
[<set: Android.Runtime.Register("setShouldDisableView", "(Z)V", "GetSetShouldDisableView_ZHandler")>]
member this.ShouldDisableView : bool with get, set

Property Value

true if it should disable the view

Attributes

Remarks

Property getter documentation:

Checks whether this Preference should disable its view when it's action is disabled.

Java documentation for android.preference.Preference.getShouldDisableView().

Property setter documentation:

Sets whether this Preference should disable its view when it gets disabled.

For example, set this and #setEnabled(boolean) to false for preferences that are only displaying information and 1) should not be clickable 2) should not have the view set to the disabled state.

Java documentation for android.preference.Preference.setShouldDisableView(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