android底层去掉虚拟按键的实例讲解
作者:三千越甲可吞吴_8 时间:2022-01-29 17:53:14
找到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
标签:android,虚拟,按键
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
idea 打包maven项目忽略test文件的操作
2021-10-16 07:21:14
![](https://img.aspxhome.com/file/2023/1/66631_0s.jpg)
Spring Boot 单元测试JUnit的实践
2023-08-29 02:02:15
![](https://img.aspxhome.com/file/2023/7/91127_0s.png)
利用JavaMail发送HTML模板邮件
2023-01-21 02:25:32
Java递归寻路实现,你真的理解了吗
2022-09-17 02:24:34
![](https://img.aspxhome.com/file/2023/5/69105_0s.png)
SpringBoot项目修改访问端口和访问路径的方法
2023-07-13 11:23:35
![](https://img.aspxhome.com/file/2023/5/108445_0s.png)
Logback配置文件这么写,还说你不会整理日志?
2022-10-30 10:23:09
![](https://img.aspxhome.com/file/2023/7/105967_0s.png)
C# 递归算法详解
2021-09-10 19:08:44
Android 7.0行为变更 FileUriExposedException解决方法
2023-07-28 01:38:29
![](https://img.aspxhome.com/file/2023/7/110697_0s.png)
SpringBoot中 Jackson 日期的时区和日期格式问题解决
2021-09-06 19:37:50
![](https://img.aspxhome.com/file/2023/6/67446_0s.png)
Unity命令行打包WebGL的示例代码
2023-02-02 10:05:13
java swing标准对话框具体实现
2021-12-30 02:48:50
![](https://img.aspxhome.com/file/2023/6/108196_0s.jpg)
Springboot+SpringSecurity+JWT实现用户登录和权限认证示例
2021-11-14 11:06:11
![](https://img.aspxhome.com/file/2023/3/71583_0s.png)
java实现小i机器人api接口调用示例
2023-02-05 00:09:15
C#在Windows窗体控件实现内容拖放(DragDrop)功能
2021-07-25 01:48:27
![](https://img.aspxhome.com/file/2023/4/98254_0s.jpg)
Spring与Spring boot的区别介绍
2022-02-12 08:55:07
Java字符串split使用方法代码实例
2023-02-06 18:55:31
![](https://img.aspxhome.com/file/2023/2/68002_0s.png)
Java实现的求逆矩阵算法示例
2023-05-02 03:02:56
![](https://img.aspxhome.com/file/2023/2/76512_0s.jpg)
在C#中捕获内存不足异常
2021-07-14 11:50:46
Android实现加载对话框
2023-10-24 14:48:36
Spring Boot集成教程之异步调用Async
2023-03-10 03:39:50