软件编程
位置:首页>> 软件编程>> Android编程>> android底层去掉虚拟按键的实例讲解

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

作者:三千越甲可吞吴_8  发布时间:2022-01-29 17:53:14 

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

来源:https://blog.csdn.net/huanghai381/article/details/51684485

0
投稿

猜你喜欢

手机版 软件编程 asp之家 www.aspxhome.com