aboutsummaryrefslogtreecommitdiff
path: root/ui/window
diff options
context:
space:
mode:
authorJan-Felix Schmakeit <jfschmakeit@google.com>2014-12-16 15:08:37 +1100
committerJan-Felix Schmakeit <jfschmakeit@google.com>2014-12-17 14:33:41 +1100
commit4f997184f4157125839a2860aada26607629e2d2 (patch)
tree169ecf51e4246048e94138be57b8fdd4fbbb6fa2 /ui/window
parente2d472f4981dd1695eb5e2aabe03b39b383b770e (diff)
downloadandroid-4f997184f4157125839a2860aada26607629e2d2.tar.gz
Add metadata and update icon for Basic Immersive Mode sample.
Change-Id: I1c79cecd5a33a6f05e2472f55e904b46b4050310
Diffstat (limited to 'ui/window')
-rw-r--r--ui/window/BasicImmersiveMode/Application/src/main/res/drawable-hdpi/ic_launcher.pngbin4199 -> 5096 bytes
-rw-r--r--ui/window/BasicImmersiveMode/Application/src/main/res/drawable-mdpi/ic_launcher.pngbin2535 -> 2950 bytes
-rw-r--r--ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xhdpi/ic_launcher.pngbin6022 -> 7309 bytes
-rw-r--r--ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xxhdpi/ic_launcher.pngbin11040 -> 12223 bytes
-rw-r--r--ui/window/BasicImmersiveMode/README.md29
-rw-r--r--ui/window/BasicImmersiveMode/screenshots/1-activity.pngbin0 -> 136294 bytes
-rw-r--r--ui/window/BasicImmersiveMode/screenshots/2-immersive.pngbin0 -> 155484 bytes
-rw-r--r--ui/window/BasicImmersiveMode/screenshots/big_icon.pngbin0 -> 71620 bytes
-rw-r--r--ui/window/BasicImmersiveMode/template-params.xml35
9 files changed, 57 insertions, 7 deletions
diff --git a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-hdpi/ic_launcher.png b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-hdpi/ic_launcher.png
index b1efaf4b..63dfb387 100644
--- a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-hdpi/ic_launcher.png
+++ b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-hdpi/ic_launcher.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-mdpi/ic_launcher.png b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-mdpi/ic_launcher.png
index f5f9244f..f7c06d03 100644
--- a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-mdpi/ic_launcher.png
+++ b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-mdpi/ic_launcher.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xhdpi/ic_launcher.png b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xhdpi/ic_launcher.png
index 5d07b3f0..22d9247c 100644
--- a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xhdpi/ic_launcher.png
+++ b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xhdpi/ic_launcher.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xxhdpi/ic_launcher.png b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
index 6ef21e1f..4c4c0374 100644
--- a/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
+++ b/ui/window/BasicImmersiveMode/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/README.md b/ui/window/BasicImmersiveMode/README.md
index 66f74b1c..87ec7b8b 100644
--- a/ui/window/BasicImmersiveMode/README.md
+++ b/ui/window/BasicImmersiveMode/README.md
@@ -1,17 +1,32 @@
Android BasicImmersiveMode Sample
-==============================
+===================================
-"Immersive Mode" is a new UI mode which improves "hide full screen" and
-"hide nav bar" modes, by letting users swipe the bars in and out.This sample
-demonstrates how to enable and disable immersive mode programmatically.
+Sample demonstrating the use of immersive mode to hide the system and navigation bars for
+full screen applications.
+
+Introduction
+------------
+
+'Immersive Mode' is a new UI mode which improves 'hide full screen' and 'hide nav bar'
+modes, by letting users swipe the bars in and out.
+
+This sample demonstrates how to enable and disable immersive mode programmatically.
+
+Immersive mode was introduced in Android 4.4 (Api Level 19). It is toggled using the
+SYSTEM_UI_FLAG_IMMERSIVE system ui 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.
Pre-requisites
--------------
-- Android SDK v20
-- Android Build Tools v20
+- Android SDK v21
+- Android Build Tools v21.1.1
- Android Support Repository
+Screenshots
+-------------
+
+<img src="screenshots/1-activity.png" height="400" alt="Screenshot"/> <img src="screenshots/2-immersive.png" height="400" alt="Screenshot"/>
+
Getting Started
---------------
@@ -42,7 +57,7 @@ file to you under the Apache License, Version 2.0 (the "License"); you may not
use this file except in compliance with the License. You may obtain a copy of
the License at
- http://www.apache.org/licenses/LICENSE-2.0
+http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
diff --git a/ui/window/BasicImmersiveMode/screenshots/1-activity.png b/ui/window/BasicImmersiveMode/screenshots/1-activity.png
new file mode 100644
index 00000000..c7bfecad
--- /dev/null
+++ b/ui/window/BasicImmersiveMode/screenshots/1-activity.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/screenshots/2-immersive.png b/ui/window/BasicImmersiveMode/screenshots/2-immersive.png
new file mode 100644
index 00000000..61cef5c6
--- /dev/null
+++ b/ui/window/BasicImmersiveMode/screenshots/2-immersive.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/screenshots/big_icon.png b/ui/window/BasicImmersiveMode/screenshots/big_icon.png
new file mode 100644
index 00000000..f8e74bec
--- /dev/null
+++ b/ui/window/BasicImmersiveMode/screenshots/big_icon.png
Binary files differ
diff --git a/ui/window/BasicImmersiveMode/template-params.xml b/ui/window/BasicImmersiveMode/template-params.xml
index cc663ab9..ec269641 100644
--- a/ui/window/BasicImmersiveMode/template-params.xml
+++ b/ui/window/BasicImmersiveMode/template-params.xml
@@ -38,4 +38,39 @@
<common src="logger"/>
<common src="activities"/>
+<metadata>
+ <status>PUBLISHED</status>
+ <categories>UI</categories>
+ <technologies>Android</technologies>
+ <languages>Java</languages>
+ <solutions>Mobile</solutions>
+ <level>INTERMEDIATE</level>
+ <icon>screenshots/big_icon.png</icon>
+ <screenshots>
+ <img>screenshots/1-activity.png</img>
+ <img>screenshots/2-immersive.png</img>
+ </screenshots>
+ <api_refs>
+ <android>android.view.View</android>
+ <android>android.view.View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY</android>
+
+ </api_refs>
+ <description>
+<![CDATA[
+Sample demonstrating the use of immersive mode to hide the system and navigation bars for
+full screen applications.
+]]>
+ </description>
+ <intro>
+<![CDATA[
+'Immersive Mode' is a new UI mode which improves 'hide full screen' and 'hide nav bar'
+modes, by letting users swipe the bars in and out.
+
+This sample demonstrates how to enable and disable immersive mode programmatically.
+
+Immersive mode was introduced in Android 4.4 (Api Level 19). It is toggled using the
+SYSTEM_UI_FLAG_IMMERSIVE system ui 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.
+]]>
+ </intro>
+</metadata>
</sample>