Share via


View.SystemUiFlagLayoutFullscreen Field

Definition

Flag for #setSystemUiVisibility(int): View would like its window to be laid out as if it has requested #SYSTEM_UI_FLAG_FULLSCREEN, even if it currently hasn't.

[Android.Runtime.Register("SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN")]
public const Android.Views.SystemUiFlags SystemUiFlagLayoutFullscreen = 1024;
[<Android.Runtime.Register("SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN")>]
val mutable SystemUiFlagLayoutFullscreen : Android.Views.SystemUiFlags

Field Value

Value = 1024
Attributes

Remarks

Flag for #setSystemUiVisibility(int): View would like its window to be laid out as if it has requested #SYSTEM_UI_FLAG_FULLSCREEN, even if it currently hasn't. This allows it to avoid artifacts when switching in and out of that mode, at the expense that some of its user interface may be covered by screen decorations when they are shown. You can perform layout of your inner UI elements to account for non-fullscreen system UI through the #fitSystemWindows(Rect) method.

Note: on displays that have a DisplayCutout, the window may still be placed differently than if #SYSTEM_UI_FLAG_FULLSCREEN was set, if the window's WindowManager.LayoutParams#layoutInDisplayCutoutMode layoutInDisplayCutoutMode is WindowManager.LayoutParams#LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT. To avoid this, use either of the other modes.

This member is deprecated. For floating windows, use LayoutParams#setFitInsetsTypes(int) with Type#statusBars() ()}. For non-floating windows that fill the screen, call Window#setDecorFitsSystemWindows(boolean) with false.

Java documentation for android.view.View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN.

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