你好,游客 登录 注册 搜索
背景:
阅读新闻

Android 4.0 彻底隐藏状态栏

[日期:2013-10-13] 来源:Linux社区  作者:Linux [字体:大 中 小]

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

Android屏幕中隐藏标题栏和状态栏 http://www.linuxidc.com/Linux/2011-08/41399.htm

更多Android相关信息见Android 专题页面 http://www.linuxidc.com/topicnews.aspx?tid=11

linux
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款