Android 4.0 彻底隐藏状态栏
去掉导航条的话可以这样修改:
./frameworks/base/core/res/res/values/config.xml
<!-- Whether a software navigation bar should be shown. NOTE: in the future this may be
autodetected from the Configuration. -->
<bool name="config_showNavigationBar">true</bool>
将true改成false就大功告成。
//////////////////////////////////////////////////////////////////////////////////////
hide statusbar
grep "status_bar_height" * -nR
grep -nsr "status_bar_height" ./ /*这样不至于有那么多不存在的文件出现*/
将下面文件中关于status_bar_height定义的改为0dip.
android4.0/frameworks/base/core/res/res/values-large/dimens.xml
android4.0/frameworks/base/core/res/res/values-sw480dp/dimens.xml
android4.0/frameworks/base/core/res/res/values-sw600dp/dimens.xml
android4.0/frameworks/base/core/res/res/values/dimens.xml
android4.0/packages/apps/Launcher2/res/values-sw480dp/dimens.xml
android4.0/packages/apps/Launcher2/res/values-sw600dp/dimens.xml
android4.0/packages/apps/Launcher2/res/values/dimens.xml
推荐阅读:
Android 480DP屏幕使状态栏始终显示 http://www.linuxidc.com/Linux/2013-03/80589.htm
Android 获取标题栏与状态栏的高度 http://www.linuxidc.com/Linux/2013-01/78740.htm
Android4.0隐藏状态栏 http://www.linuxidc.com/Linux/2012-07/65495.htm
Android4.0隐藏状态栏电池图标 http://www.linuxidc.com/Linux/2012-07/65494.htm
Android 隐藏状态栏和 测试 Activity是否活动 http://www.linuxidc.com/Linux/2012-04/58005.htm