Udostępnij za pośrednictwem


View.SystemUiFlagLayoutHideNavigation Field

Definition

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

[Android.Runtime.Register("SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION")]
public const Android.Views.SystemUiFlags SystemUiFlagLayoutHideNavigation = 512;
[<Android.Runtime.Register("SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION")>]
val mutable SystemUiFlagLayoutHideNavigation : Android.Views.SystemUiFlags

Field Value

Value = 512
Attributes

Remarks

Flag for #setSystemUiVisibility(int): View would like its window to be laid out as if it has requested #SYSTEM_UI_FLAG_HIDE_NAVIGATION, 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 navigation system UI through the #fitSystemWindows(Rect) method.

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

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