Share via


View.SystemUiFlagHideNavigation Field

Definition

Flag for #setSystemUiVisibility(int): View has requested that the system navigation be temporarily hidden.

[Android.Runtime.Register("SYSTEM_UI_FLAG_HIDE_NAVIGATION")]
public const Android.Views.SystemUiFlags SystemUiFlagHideNavigation = 2;
[<Android.Runtime.Register("SYSTEM_UI_FLAG_HIDE_NAVIGATION")>]
val mutable SystemUiFlagHideNavigation : Android.Views.SystemUiFlags

Field Value

Value = 2
Attributes

Remarks

Flag for #setSystemUiVisibility(int): View has requested that the system navigation be temporarily hidden.

This is an even less obtrusive state than that called for by #SYSTEM_UI_FLAG_LOW_PROFILE; on devices that draw essential navigation controls (Home, Back, and the like) on screen, SYSTEM_UI_FLAG_HIDE_NAVIGATION will cause those to disappear. This is useful (in conjunction with the android.view.WindowManager.LayoutParams#FLAG_FULLSCREEN FLAG_FULLSCREEN and android.view.WindowManager.LayoutParams#FLAG_LAYOUT_IN_SCREEN FLAG_LAYOUT_IN_SCREEN window flags) for displaying content using every last pixel on the display.

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 #SYSTEM_UI_FLAG_FULLSCREEN will be cleared automatically, so that both elements reappear at the same time.

This member is deprecated. Use WindowInsetsController#hide(int) with Type#navigationBars() instead.

Java documentation for android.view.View.SYSTEM_UI_FLAG_HIDE_NAVIGATION.

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