赞
踩
在12.0定制化开发中,要求导航栏左边显示的定制化,这时需要了解导航栏的显示控制方向,然后修改显示方向
在10.0以后关于导航栏显示位置都是在DisplayPolicy.java中处理的所以查询相关的设置方法,然后修改导航栏显示方向2.NavigationBarView 导航栏 左边显示的修改的核心代码
- /frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
- /framework/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
路径:
/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
分两部分实现:
- /**
- * Called when a window is being added to the system. Must not throw an exception.
- *
- * @param win The window being added.
- * @param attrs Information about the window to be added.
- */
- void addWindowLw(WindowState win, WindowManager.LayoutParams at
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。