aboutsummaryrefslogtreecommitdiff
path: root/ui/window
diff options
context:
space:
mode:
authorShailen Tuli <shailentuli@google.com>2014-12-19 21:45:29 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-12-19 21:45:29 +0000
commitf686d8fb30df27140e27debca4c679367f879142 (patch)
tree096b589e710f51587b5a7d5404a94435024511f6 /ui/window
parent91149dcaa4cb0e296152c5ecdef1c242d7503b8a (diff)
parent9febcc0bfd7a869b6ceaa0f2d60dce3888e70a6b (diff)
downloadandroid-f686d8fb30df27140e27debca4c679367f879142.tar.gz
Merge "Created metadata for AdvancedImmersiveMode sample" into lmp-docs
Diffstat (limited to 'ui/window')
-rw-r--r--ui/window/AdvancedImmersiveMode/screenshots/icon-web.pngbin0 -> 74446 bytes
-rw-r--r--ui/window/AdvancedImmersiveMode/screenshots/immersion.pngbin0 -> 111730 bytes
-rw-r--r--ui/window/AdvancedImmersiveMode/template-params.xml46
3 files changed, 43 insertions, 3 deletions
diff --git a/ui/window/AdvancedImmersiveMode/screenshots/icon-web.png b/ui/window/AdvancedImmersiveMode/screenshots/icon-web.png
new file mode 100644
index 00000000..fc00d921
--- /dev/null
+++ b/ui/window/AdvancedImmersiveMode/screenshots/icon-web.png
Binary files differ
diff --git a/ui/window/AdvancedImmersiveMode/screenshots/immersion.png b/ui/window/AdvancedImmersiveMode/screenshots/immersion.png
new file mode 100644
index 00000000..a6c310b9
--- /dev/null
+++ b/ui/window/AdvancedImmersiveMode/screenshots/immersion.png
Binary files differ
diff --git a/ui/window/AdvancedImmersiveMode/template-params.xml b/ui/window/AdvancedImmersiveMode/template-params.xml
index 2ed54fdd..dd524687 100644
--- a/ui/window/AdvancedImmersiveMode/template-params.xml
+++ b/ui/window/AdvancedImmersiveMode/template-params.xml
@@ -19,9 +19,7 @@
<group>UI</group>
<package>com.example.android.advancedimmersivemode</package>
-
- <!-- change minSdk if needed-->
- <minSdk>4</minSdk>
+ <minSdk>19</minSdk>
<strings>
<intro>
@@ -32,6 +30,7 @@
with some of the other UI flags related to full-screen apps.
]]>
</intro>
+ </intro>
<sample_action>Try these settings!</sample_action>
</strings>
@@ -39,5 +38,46 @@
<template src="FragmentView"/>
<common src="logger"/>
<common src="activities"/>
+ <metadata>
+ <status>PUBLISHED</status>
+ <categories>Window</categories>
+ <technologies>Android</technologies>
+ <languages>Java</languages>
+ <solutions>Mobile</solutions>
+ <level>INTERMEDIATE</level>
+ <icon>screenshots/icon-web.png</icon>
+ <screenshots>
+ <img>screenshots/immersion.png</img>
+ <img>screenshots/leanback.png</img>
+ </screenshots>
+ <api_refs>
+ <android>android.view.Window</android>
+ </api_refs>
+ <description>
+<![CDATA[
+Immersive Mode, added in Android 4.4, improves the "hide full screen" and
+"hide nav bar" modes by letting users swipe the bars in and out. This sample
+lets the user experiment with immersive mode by seeing how it interacts
+with some of the other UI flags related to full-screen apps.
+]]>
+ </description>
+
+ <intro>
+<![CDATA[
+Android 4.4 (API Level 19) introduces a new `SYSTEM_UI_FLAG_IMMERSIVE`
+flag for [setSystemUiVisibility()][1] that lets your app go truly "full
+screen." This flag, when combined with the `SYSTEM_UI_FLAG_HIDE_NAVIGATION` and
+`SYSTEM_UI_FLAG_FULLSCREEN` flags, hides the navigation and status bars
+and lets your app capture all touch events on the screen.
+
+When immersive full-screen mode is enabled, your activity continues
+to receive all touch events. The user can reveal the system bars with
+an inward swipe along the region where the system bars normally
+appear.
+
+[1]: http://developer.android.com/reference/android/view/View.html#setSystemUiVisibility(int)
+]]>
+ </intro>
+ </metadata>
</sample>