MTK 隐藏底部状态栏

时间:2024-04-09 12:07:27

步骤:

源码/frameworks/base/policy/src/com/android/internal/policy/impl目录下修改PhoneWindowManager.java文件.

修改方法: 定位到setInitialDisplaySize函数,找到注释

// Height of thenavigation bar when presented horizontally at bottom

将注解下的源代码修改为:

mNavigationBarHeightForRotation[mPortraitRotation]=

mNavigationBarHeightForRotation[mUpsideDownRotation]=

//res.getDimensionPixelSize(com.android.internal.R.dimen.navigation_bar_height);

;

mNavigationBarHeightForRotation[mLandscapeRotation]=

mNavigationBarHeightForRotation[mSeascapeRotation]=

//res.getDimensionPixelSize(com.android.internal.R.dimen.navigation_bar_height_landscape);

0;