From 9dd04e720a58887a1c8d729e74fe8fb9295d4492 Mon Sep 17 00:00:00 2001
From: Katie McCormick This lesson teaches you to
@@ -72,14 +72,6 @@ again after a few moments, you can instead use the
shown in this mode are in a transient state.
When you use {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE IMMERSIVE} or - {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY IMMERSIVE_STICKY}, - the system UI stays hidden, even while users are interacting with your -app or game. You can capture touch events from anywhere across the screen, even areas that -would otherwise be occupied by the system bars. This gives you a great way to create a -larger, richer, more -immersive UI in your app or game and reduce visual distraction at the same time.
-Figure 1 illustrates the different "immersive mode" states:
The flags {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE} and
{@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY} both provide an immersive
- experience. But whereas the
- {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY IMMERSIVE_STICKY}
- flag causes semi-transparent system bars to briefly show and then hide again in response to
- a swipe gesture, the same swipe gesture causes the system bars to reappear and remain
- visible if you instead use the {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE IMMERSIVE}
- flag. Here are examples of when you would use one vs. the other:
+ experience, but with the differences in behavior described above. Here are
+ examples of when you would use one flag vs. the other:
When you use the {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE} flag, it hides the system bars based on what other UI flags you have set @@ -242,7 +230,7 @@ For more discussion of these topics, watch the video DevBytes: Android 4.4 Immersive Mode.
-When you use the {@link android.view.View#SYSTEM_UI_FLAG_IMMERSIVE_STICKY} flag, an inward swipe in the system bars areas causes the bars to temporarily appear in a