1. 程式人生 > >android底層去掉虛擬按鍵

android底層去掉虛擬按鍵

 找到framework/base/core/res/res/values/dimens.xml,在其中把Navigation的配置改成0

    <!-- Height of the bottom navigation / system bar. -->
    <dimen name="navigation_bar_height">0dp</dimen>
    <!-- Height of the bottom navigation bar in portrait; often the same as @dimen/navigation_bar_height -->
    <dimen name="navigation_bar_height_landscape">0dp</dimen>
因為這個改動只修改了framework的資原始檔,編譯核心,獲取framework-res.apk(./out/target/product/sabresd/system/framework/) , adb push到手機的/system/framework(在這個目錄下能看到原有的framework-res.apk),然後reboot,啟動發現沒有虛擬導航按鍵了.