private int getNavigationBarHeight(Context context) {
Resources res = context.getResources();
int result = 0;
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {
if (hasNavBar(context)) {
String key;
if (mInPortrait) {
key = NAV_BAR_HEIGHT_RES_NAME;
} else {
key = NAV_BAR_HEIGHT_LANDSCAPE_RES_NAME;
}
return ResourcesUtils.getDimensionSize(res, key, "android");
}
}
return result;
}
ActivityConfig.java 文件源码
java
阅读 35
收藏 0
点赞 0
评论 0
项目:ImmerseMode
作者:
评论列表
文章目录