-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Feedback Awaited 🕒 等待反馈Waiting for the feedback from issue creater and issue will be closed if duration is over one monthWaiting for the feedback from issue creater and issue will be closed if duration is over one monthProposal 💡 方案Issue creater's own proposal which may be really helpfulIssue creater's own proposal which may be really helpfulReinforcement ✨ 强化Issues for higher quality of being compatibleIssues for higher quality of being compatible
Description
这是我目前模拟使用的,看看能不行添加进去,方便使用
// 状态栏高度获取函数
function getStatusBarHeight() {
let result = 0;
let resId = context.getResources().getIdentifier("status_bar_height", "dimen", "android");
if (resId > 0) {
result = context.getResources().getDimensionPixelOffset(resId);
}
if (result <= 0) {
result = context.getResources().getDimensionPixelOffset(R.dimen.dimen_25dp);
}
return result;
}
Metadata
Metadata
Assignees
Labels
Feedback Awaited 🕒 等待反馈Waiting for the feedback from issue creater and issue will be closed if duration is over one monthWaiting for the feedback from issue creater and issue will be closed if duration is over one monthProposal 💡 方案Issue creater's own proposal which may be really helpfulIssue creater's own proposal which may be really helpfulReinforcement ✨ 强化Issues for higher quality of being compatibleIssues for higher quality of being compatible