Udostępnij za pośrednictwem


Window.SetFlags(WindowManagerFlags, WindowManagerFlags) Method

Definition

Set the flags of the window, as per the WindowManager.LayoutParams WindowManager.LayoutParams flags.

[Android.Runtime.Register("setFlags", "(II)V", "GetSetFlags_IIHandler")]
public virtual void SetFlags (Android.Views.WindowManagerFlags flags, Android.Views.WindowManagerFlags mask);
[<Android.Runtime.Register("setFlags", "(II)V", "GetSetFlags_IIHandler")>]
abstract member SetFlags : Android.Views.WindowManagerFlags * Android.Views.WindowManagerFlags -> unit
override this.SetFlags : Android.Views.WindowManagerFlags * Android.Views.WindowManagerFlags -> unit

Parameters

flags
WindowManagerFlags

The new window flags (see WindowManager.LayoutParams).

mask
WindowManagerFlags

Which of the window flag bits to modify.

Attributes

Remarks

Set the flags of the window, as per the WindowManager.LayoutParams WindowManager.LayoutParams flags.

Note that some flags must be set before the window decoration is created (by the first call to #setContentView(View, android.view.ViewGroup.LayoutParams) or #getDecorView(): WindowManager.LayoutParams#FLAG_LAYOUT_IN_SCREEN and WindowManager.LayoutParams#FLAG_LAYOUT_INSET_DECOR. These will be set for you based on the android.R.attr#windowIsFloating attribute.

Java documentation for android.view.Window.setFlags(int, int).

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