Loading... ## 沉浸式状态栏/导航栏命令 --- 请使用 `ADB`工具运行命令: [下载ADB工具](https://kroxitine.com/index.php/archives/68/ "下载ADB工具") #### 一.全屏沉浸解决方案 1.全局沉浸(隐藏状态栏/虚拟导航栏) ```bash adb shell settings put global policy_control immersive.full=* ``` 2.状态栏沉浸 ```shell adb shell settings put global policy_control immersive.status=* ``` 3.导航栏沉浸(上划可呼出) ```shell adb shell settings put global policy_control immersive.navigation=* ``` 4.单独控制排除的APP(案例使得qq下不隐藏) ```shell adb shell settings put global policy_control immersive.full=apps,-com.tencent.qq, ``` > 这里必须采用包名(例:com.tencent.qq)才可以生效 5.恢复正常模式 ```shell adb shell settings put global policy_control null ``` ####二.Overscan方法解决方案 1.隐藏导航栏(上划不会呼出) ```shell adb shell wm overscan 0,0,0,-210 //数字大小可更改 //四个数字分别表示 左、上、右、下距边缘的距离(根据需求调整) ``` 2.恢复完全隐藏导航栏正常模式 ```shell adb shell wm overscan 0,0,0,0 ``` 最后修改:2022 年 08 月 08 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 喜欢就请我喝一杯奶茶吧~
1 条评论
原来泥是福瑞!!!