隐藏在Android的按钮栏 [英] Hide button bar in android

查看:106
本文介绍了隐藏在Android的按钮栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个需要在全屏模式下的应用程序。

I am developing an application that needs to be on full screen mode.

我试图用这个code在我的清单中,

I tried to use this code in my manifest,

android:theme="@android:style/Theme.NoTitleBar.Fullscreen"

却没有任何反应,仍然按钮栏(如主页,返回和近期任务应用程序)在那里。我需要隐藏它们以完全有一个完整的画面。请帮我这个。谢谢。

but nothing happened and still the button bar (such as Home, Back and Recent Task App) was there. I need to hide them in order to totally have a full screen. Please help me with this. Thank you.

推荐答案

大量的调查研究后,我终于弄明白,使我的活动在全屏幕模式。

After a lot of research, I finally figure it out and make my activity in full screen mode.

getWindow().getDecorView().setSystemUiVisibility(8);

这篇关于隐藏在Android的按钮栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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