Android 4.0 设置全屏修改
最近在做一个平板的应用,底部的BACK HOME 还有电池WIFI的那一条STATUS_BAR设置全屏后怎么也去不掉,查找资料后,发现一个比较好的方法,在此分享
第一种方式(程序代码):
在OnCreate里添加一行语句
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LOW_PROFILE);
getWindow().getDecorView().setSystemUiVisibility(View.STATUS_BAR_HIDDEN);
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_SHOW_FULLSCREEN);
getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);
* There is a limitation: because navigation controls are so important, the least user * interaction will cause them to reappear immediately.
$ adb remount$ adb shell mv /system/app/SystemUI.odex /system/app/SystemUI.odexold$ adb shell mv /system/app/SystemUI.apk /system/app/SystemUI.apkold$ adb reboot