Chinaunix首页 | 论坛 | 博客
  • 博客访问: 397322
  • 博文数量: 78
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 940
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-25 09:39
文章分类

全部博文(78)

文章存档

2016年(7)

2015年(1)

2014年(35)

2013年(35)

我的朋友

分类: Android平台

2015-01-26 15:43:24

1.frameworks/base/core/res/res/values/config.xml
false 

2. 系统Hide Status Bar
    frameworks/base/core/res/res/values/dimens.xml
   把  25dip 修改为0dip
3. 系统Hide Navigation Bar
       frameworks/base/packages/SystemUI/src/com/android/systemui/
         statusbar/phone/PhoneStatusBar.java
       在start函数中注释掉 "addNavigationBar();"
4.在Android4.0及以后版本中,可通过以下方法隐藏NavigationBar
View decorView = getWindow().getDecorView();
// Hide both the navigation bar and the status bar.
// SYSTEM_UI_FLAG_FULLSCREEN is only available on Android 4.1 and higher, but as
// a general rule, you should design your app to hide the status bar whenever you
// hide the navigation bar.
int uiOptions = View.SYSTEM_UI_FLAG_HIDE_NAVIGATION
              | View.SYSTEM_UI_FLAG_FULLSCREEN;
decorView.setSystemUiVisibility(uiOptions);
阅读(5341) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~