隐藏我在Android 4.0.4应用软件Android状态栏? [英] Hide android status bar for my application on Android 4.0.4?
本文介绍了隐藏我在Android 4.0.4应用软件Android状态栏?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我用下面的code试图隐藏状态栏,但它不能正常工作。
I tried with the following code to hide status bar but it doesn't work..
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
和暗淡我用了吧
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
和它的作品..没有任何一个知道如何隐藏的Android 4.0.4设备上的状态栏?
and it works.. Does any one know how to hide status bar on Android 4.0.4 device??
推荐答案
使用你的清单以下
<activity
android:name=".abc"
android:label="@string/app_name"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen" >
不过,这只能在手机上运行,平板电脑不支持状态栏的隐藏。
This however will only work on phones, Tablets do not support hiding of status bar.
这篇关于隐藏我在Android 4.0.4应用软件Android状态栏?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文