gpt4 book ai didi

How to hide or invisible navigation bar in Android aosp(如何在Android AOSP中隐藏或隐藏导航栏)

转载 作者:bug小助手 更新时间:2023-10-24 20:24:14 28 4
gpt4 key购买 nike



Need to understand the how can we remove or hide 3button navigation from Android framework side.

需要了解我们如何从Android框架端删除或隐藏3Button导航。


In landscape mode, 3 button is not hiding. I could see the bounds value for eg ( 0,0,254,273).

在横向模式下,3个按钮不会隐藏。我可以看到Eg(0,0,254,273)的边界值。


Anyone having idea about this

有人知道这件事吗?


更多回答

What about setting the property qemu.hw.mainkeys=0.

如何设置属性qemu.hw.mainkey=0。

优秀答案推荐

If you're building your own framework, you can change the file

如果您正在构建自己的框架,则可以更改该文件



framework/base/services/core/java/com/android/server/wm/DisplayPolicy.java



and the method public boolean hasNavigationBar() to return false to hide the buttons. But beware, this will make the navigation buttons be totally unavailable so if you need to show them again, you will have to kill the systemUI service and change the hasNavigationBar() result to true.

公共布尔型方法hasNavigationBar()返回FALSE以隐藏按钮。但请注意,这将使导航按钮完全不可用,因此如果需要再次显示它们,您将不得不终止系统UI服务并将hasNavigationBar()结果更改为True。


更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com