android底层去掉虚拟按键的实例讲解

软件发布|下载排行|最新软件

当前位置:首页IT学院IT技术

android底层去掉虚拟按键的实例讲解

  2021-04-03 我要评论

找到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,启动发现没有虚拟导航按键了.

以上这篇android底层去掉虚拟按键的实例讲解就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。

您可能感兴趣的文章:

Copyright 2022 版权所有 软件发布 访问手机版

声明:所有软件和文章来自软件开发商或者作者 如有异议 请与本站联系 联系我们