Android 屏蔽虚拟导航栏(NavigationBar)
Android 屏蔽虚拟导航栏(NavigationBar)
最近收到项目需求,需要屏蔽设备的虚拟导航栏(NavigationBar),具体修改参照如下:
/vendor/mediatek/proprietary/packages/apps/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java
try {
boolean showNav = mWindowManagerService.hasNavigationBar();
if (DEBUG) Log.v(TAG, "hasNavigationBar=" + showNav);
if (showNav) {
- createNavigationBar();
+ //createNavigationBar();
}
} catch (RemoteException ex) {
// no window manager? good luck with that
}
重新编译验证,修改生效,虚拟导航栏(NavigationBar)已屏蔽
原文地址:https://blog.csdn.net/Jeffries_C/article/details/135461050
免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!