1.概述
在12.0定制化開發(fā)中,要求導(dǎo)航欄左邊顯示的定制化,這時需要了解導(dǎo)航欄的顯示控制方向,然后修改顯示方向
在10.0以后關(guān)于導(dǎo)航欄顯示位置都是在DisplayPolicy.java中處理的所以查詢相關(guān)的設(shè)置方法,然后修改導(dǎo)航欄顯示方向2.NavigationBarView 導(dǎo)航欄 左邊顯示的修改的核心代碼文章來源:http://www.zghlxwxcb.cn/news/detail-708852.html
2.NavigationBarView 導(dǎo)航欄左邊顯示的修改核心代碼
/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
/framework/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/NavigationBarView.java
3.NavigationBarView 導(dǎo)航欄左邊顯示的修改核心代碼分析和功能實現(xiàn) 3.1DisplayPolicy.java關(guān)于導(dǎo)航欄顯示方向的相關(guān)代碼分析
路徑:
/frameworks/base/services/core/java/com/android/server/wm/DisplayPolicy.java
分兩部分實現(xiàn):文章來源地址http://www.zghlxwxcb.cn/news/detail-708852.html
/**
* 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
到了這里,關(guān)于Android 12.0 NavigationBarView 導(dǎo)航欄 左邊顯示的修改的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!