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