你如何删除在Android上的导航栏?

你如何删除在Android上的导航栏?

问题描述:

当我听景观YouTube视频全屏我的Galaxy Nexus的,几秒钟后,右边disapear导航栏(其中包含后退,家和最近的应用程序按钮栏)。

When I listen to a YouTube video fullscreen in landscape on my Galaxy Nexus, the navigation bar on the right disapear after a few seconds (the bar which contains the "back", "home" and "recent apps" buttons ).

我想这样做,当用户观看的视频在我的应用程序一样的东西。什么是code隐藏的导航栏?

I want to do the same thing when a user watch a video in my app. What is the code to hide the navigation bar?

[更新]这是我想要隐藏了吧。没有标题栏,也没有行动起来吧。导航栏。 (其中包含后退,家和最近的应用程序按钮栏)。我也不想为暗淡的按钮。我期待到拆除整个酒吧(比如当你打算在横向模式下的视频全屏YouTube应用程序一样)

[UPDATE] Here is the bar I want to hide. Not the title bar, nor the action bar. The navigation bar. (the bar which contains the "back", "home" and "recent apps" buttons ). I also don't want to "dim" the buttons. I'm looking into removing the bar entirely (like the YouTube app does when you plan a video fullscreen in landscape mode)

使用:

view.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);