你如何删除在Android上的导航栏? [英] how do you remove the navigation bar on Android?

查看:135
本文介绍了你如何删除在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);

这篇关于你如何删除在Android上的导航栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆