Udostępnij za pośrednictwem


View.SystemUiFlagImmersiveSticky Field

Definition

Flag for #setSystemUiVisibility(int): View would like to remain interactive when hiding the status bar with #SYSTEM_UI_FLAG_FULLSCREEN and/or hiding the navigation bar with #SYSTEM_UI_FLAG_HIDE_NAVIGATION.

[Android.Runtime.Register("SYSTEM_UI_FLAG_IMMERSIVE_STICKY")]
public const Android.Views.SystemUiFlags SystemUiFlagImmersiveSticky = 4096;
[<Android.Runtime.Register("SYSTEM_UI_FLAG_IMMERSIVE_STICKY")>]
val mutable SystemUiFlagImmersiveSticky : Android.Views.SystemUiFlags

Field Value

Value = 4096
Attributes

Remarks

Flag for #setSystemUiVisibility(int): View would like to remain interactive when hiding the status bar with #SYSTEM_UI_FLAG_FULLSCREEN and/or hiding the navigation bar with #SYSTEM_UI_FLAG_HIDE_NAVIGATION. Use this flag to create an immersive experience while also hiding the system bars. If this flag is not set, #SYSTEM_UI_FLAG_HIDE_NAVIGATION will be force cleared by the system on any user interaction, and #SYSTEM_UI_FLAG_FULLSCREEN will be force-cleared by the system if the user swipes from the top of the screen.

When system bars are hidden in immersive mode, they can be revealed temporarily with system gestures, such as swiping from the top of the screen. These transient system bars will overlay app's content, may have some degree of transparency, and will automatically hide after a short timeout.

Since this flag is a modifier for #SYSTEM_UI_FLAG_FULLSCREEN and #SYSTEM_UI_FLAG_HIDE_NAVIGATION, it only has an effect when used in combination with one or both of those flags.

This member is deprecated. Use WindowInsetsController#BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE instead.

Java documentation for android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY.

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