跳转到相应内容

最常访问

最近访问

navigation

Managing the System UI

Dependencies and prerequisites

  • Android 1.6 (API Level 4) or higher

You should also read

Try it out

Get the sample

ImmersiveMode sample

Design Guide

System Bars

Video

DevBytes: Android 4.4 Immersive Mode

system bars

Figure 1. System bars, including the [1] status bar, and [2] navigation bar.

The system bars are screen areas dedicated to the display of notifications, communication of device status, and device navigation. Typically the system bars (which consist of the status and navigation bars, as shown in figure 1) are displayed concurrently with your app. Apps that display immersive content, such as movies or images, can temporarily dim the system bar icons for a less distracting experience, or temporarily hide the bars for a fully immersive experience.

If you're familiar with the Android Design Guide, you know the importance of designing your apps to conform to standard Android UI guidelines and usage patterns. You should carefully consider your users' needs and expectations before modifying the system bars, since they give users a standard way of navigating a device and viewing its status.

This class describes how to dim or hide system bars across different versions of Android to create an immersive user experience, while still preserving easy access to the system bars.

Lessons

Dimming the System Bars
Learn how to dim the status and navigation bars.
Hiding the Status Bar
Learn how to hide the status bar on different versions of Android.
Hiding the Navigation Bar
Learn how to hide the navigation bar, in addition to the status bar.
Using Immersive Full-Screen Mode
Learn how to create a fully immersive experience in your app.
Responding to UI Visibility Changes
Learn how to register a listener to get notified of system UI visibility changes so that you can adjust your app's UI accordingly.
此网站会使用 Cookie 来存储您在此网站上指定的语言和显示选项偏好设置。

获取最新的 Android Developers 资讯和提示,助您在 Google Play 上取得成功。

* 必填字段

成功!

在微信上关注 Google Developers

要以浏览此网站吗?

您请求访问的是网页,但是您为此网站设置的语言偏好为

要更改您的语言偏好设置并以浏览此网站吗?如果以后您想要更改语言偏好设置,请使用每个页面底部的语言菜单。

该类需要 或更高的 API 级别

此文档已被隐藏,因为您为该文档选择的 API 级别是 。您可以使用左侧导航栏上方的选择器来更改文档的 API 级别。

要详细了解如何根据您的应用需求指定 API 级别,请参阅支持不同平台版本

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)