Android Guides | Samples

Android.Views.SystemUiFlags Enumeration

Enumerates values returned by several types and taken as a parameter of the View.DispatchSystemUiVisibilityChanged, View.DispatchWindowSystemUiVisiblityChanged, and View.OnWindowSystemUiVisibilityChanged members.

Syntax

[System.Flags]
public enum SystemUiFlags

Remarks

Members

Member NameDescription
Fullscreen

View.SystemUiVisibility

WindowManagerFlags.FullscreenWindowFeatures.ActionBarOverlay

WindowManagerFlags.Fullscreen

When using this flag, the application should provide some easy facility for the user to go out of it. A common example would be in an e-book reader, where tapping on the screen brings back whatever screen and UI decorations that had been hidden while the user was immersed in reading the book.

HideNavigation

View.SystemUiVisibility

View.SystemUiFlagLowProfileSYSTEM_UI_FLAG_HIDE_NAVIGATIONWindowManagerFlags.FullscreenWindowManagerFlags.LayoutInScreen

There is a limitation: because navigation controls are so important, the least user interaction will cause them to reappear immediately. When this happens, both this flag and View.SystemUiFlagFullscreen will be cleared automatically, so that both elements reappear at the same time.

Immersive
ImmersiveSticky
LayoutFlagsFlags that can impact the layout in relation to system UI.
LayoutFullscreenFlag for View.SystemUiVisibility: View would like its window to be layed out as if it has requested View.SystemUiFlagFullscreen, 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 View.FitSystemWindows(Rect) method.
LayoutHideNavigationFlag for View.SystemUiVisibility: View would like its window to be layed out as if it has requested View.SystemUiFlagHideNavigation, 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 the navagation system UI through the View.FitSystemWindows(Rect) method.
LayoutStable

View.SystemUiVisibilityView.FitSystemWindows(Rect)View.SystemUiFlagLayoutFullscreenView.SystemUiFlagFullscreenView.SystemUiFlagLayoutFullscreenView.SystemUiFlagLayoutHideNavigationView.SystemUiFlagFullscreenView.SystemUiFlagHideNavigationView.SystemUiFlagLayoutHideNavigationWindowManagerFlags.FullscreenView.SystemUiFlagFullscreen

If you are using ActionBar in overlay mode with WindowFeatures.ActionBarOverlay, this flag will also impact the insets it adds to those given to the application.

LowProfile

View.SystemUiVisibility

In low profile mode, the status bar and/or navigation icons may dim.

VisibleSpecial constant for View.SystemUiVisibility: View has requested the system UI (status bar) to be visible (the default).

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.SystemUiFlags are listed below.

See Also: Enum

Public Fields

FullscreenSystemUiFlags.

View.SystemUiVisibility

WindowManagerFlags.FullscreenWindowFeatures.ActionBarOverlay

WindowManagerFlags.Fullscreen

When using this flag, the application should provide some easy facility for the user to go out of it. A common example would be in an e-book reader, where tapping on the screen brings back whatever screen and UI decorations that had been hidden while the user was immersed in reading the book.

HideNavigationSystemUiFlags.

View.SystemUiVisibility

View.SystemUiFlagLowProfileSYSTEM_UI_FLAG_HIDE_NAVIGATIONWindowManagerFlags.FullscreenWindowManagerFlags.LayoutInScreen

There is a limitation: because navigation controls are so important, the least user interaction will cause them to reappear immediately. When this happens, both this flag and View.SystemUiFlagFullscreen will be cleared automatically, so that both elements reappear at the same time.

ImmersiveSystemUiFlags.
ImmersiveStickySystemUiFlags.
LayoutFlagsSystemUiFlags. Flags that can impact the layout in relation to system UI.
LayoutFullscreenSystemUiFlags. Flag for View.SystemUiVisibility: View would like its window to be layed out as if it has requested View.SystemUiFlagFullscreen, 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 View.FitSystemWindows(Rect) method.
LayoutHideNavigationSystemUiFlags. Flag for View.SystemUiVisibility: View would like its window to be layed out as if it has requested View.SystemUiFlagHideNavigation, 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 the navagation system UI through the View.FitSystemWindows(Rect) method.
LayoutStableSystemUiFlags.

View.SystemUiVisibilityView.FitSystemWindows(Rect)View.SystemUiFlagLayoutFullscreenView.SystemUiFlagFullscreenView.SystemUiFlagLayoutFullscreenView.SystemUiFlagLayoutHideNavigationView.SystemUiFlagFullscreenView.SystemUiFlagHideNavigationView.SystemUiFlagLayoutHideNavigationWindowManagerFlags.FullscreenView.SystemUiFlagFullscreen

If you are using ActionBar in overlay mode with WindowFeatures.ActionBarOverlay, this flag will also impact the insets it adds to those given to the application.

LowProfileSystemUiFlags.

View.SystemUiVisibility

In low profile mode, the status bar and/or navigation icons may dim.

VisibleSystemUiFlags. Special constant for View.SystemUiVisibility: View has requested the system UI (status bar) to be visible (the default).