1. 程式人生 > >安卓4.3,原始碼內隱藏狀態列,導航欄

安卓4.3,原始碼內隱藏狀態列,導航欄

博主使用的是天嵌的IMX6Q

安卓版本4.3

修改方法:

導航欄:
    修改 build/tools/buildinfo.sh 58行
        echo "qemu.hw.mainkeys=1" 隱藏
        echo "qemu.hw.mainkeys=0" 顯示

狀態列:
    修改 frameworks/base/core/res/res/values/dimens.xml 34行
        <!-- Height of the status bar -->        狀態列

   
            <dimen name="status_bar_height">0dp</dimen>        ->0dp隱藏
            <!-- Height of the bottom navigation / system bar. -->         導航欄

            <dimen name="navigation_bar_height">48dp</dimen>      ->0dp隱藏
            <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
            <dimen name="navigation_bar_height_landscape">48dp</dimen>
            <!-- Width of the navigation bar when it is placed vertically on the screen -->
            <dimen name="navigation_bar_width">48dp</dimen>