Sdílet prostřednictvím


View.PreferKeepClear Property

Definition

Retrieve the preference for this view to be kept clear. -or- Set a preference to keep the bounds of this view clear from floating windows above this view's window.

public bool PreferKeepClear { [Android.Runtime.Register("isPreferKeepClear", "()Z", "", ApiSince=33)] get; [Android.Runtime.Register("setPreferKeepClear", "(Z)V", "", ApiSince=33)] set; }
[<get: Android.Runtime.Register("isPreferKeepClear", "()Z", "", ApiSince=33)>]
[<set: Android.Runtime.Register("setPreferKeepClear", "(Z)V", "", ApiSince=33)>]
member this.PreferKeepClear : bool with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Retrieve the preference for this view to be kept clear. This is set either by #setPreferKeepClear or via the attribute android.R.styleable#View_preferKeepClear.

If this is true, the system will ignore the Rects set by #setPreferKeepClearRects and try to keep the whole view clear.

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

Property setter documentation:

Set a preference to keep the bounds of this view clear from floating windows above this view's window. This informs the system that the view is considered a vital area for the user and that ideally it should not be covered. Setting this is only appropriate for UI where the user would likely take action to uncover it.

The system will try to respect this preference, but when not possible will ignore it.

Note: This is independent from #setPreferKeepClearRects. If both are set, both will be taken into account.

Java documentation for android.view.View.setPreferKeepClear(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