diff --git a/docs/html/training/system-ui/immersive.jd b/docs/html/training/system-ui/immersive.jd index 21672c8ecab04..0a1516cca58dd 100644 --- a/docs/html/training/system-ui/immersive.jd +++ b/docs/html/training/system-ui/immersive.jd @@ -11,8 +11,8 @@ trainingnavtop=true

This lesson teaches you to

  1. Choose an Approach
  2. -
  3. Use IMMERSIVE
  4. -
  5. Use IMMERSIVE_STICKY
  6. +
  7. Use Non-Sticky Immersion
  8. +
  9. Use Sticky Immersion
@@ -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:

-

Use IMMERSIVE

+

Use Non-Sticky Immersion

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.

-

Use IMMERSIVE_STICKY

+

Use Sticky Immersion

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