| <?xml version="1.0" encoding="UTF-8"?> | |
| <!-- | |
| Copyright 2013 The Android Open Source Project | |
| Licensed 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 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <sample> | |
| <name>AdvancedImmersiveMode</name> | |
| <group>UI</group> | |
| <package>com.example.android.advancedimmersivemode</package> | |
| <minSdk>19</minSdk> | |
| <strings> | |
| <intro> | |
| <![CDATA[ | |
| \n\n\n\"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. | |
| ]]> | |
| </intro> | |
| <sample_action>Try these settings!</sample_action> | |
| </strings> | |
| <template src="base"/> | |
| <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> |