当前位置:网站首页>Andorid 获取系统标题栏高度
Andorid 获取系统标题栏高度
2022-07-02 23:00:00 【轻语积累】
//获取状态栏高度
public static int getStatusBarHeight(Context context) {
int result = 0;
int resourceId = context.getResources().getIdentifier("status_bar_height", "dimen",
"android");
if (resourceId > 0) {
result = context.getResources().getDimensionPixelSize(resourceId);
}
return result;
}
边栏推荐
- Pytorch里面多任务Loss是加起来还是分别backward?
- What is the standard format of a 2000-3000 word essay for college students' classroom homework?
- Using tensorflow to realize voiceprint recognition
- Matlab 信号处理【问答笔记-1】
- SQL query statement parameters are written successfully
- List of major chip Enterprises
- Use of cocospods
- Install docker and use docker to install MySQL
- Xcode real machine debugging
- [shutter] open the third-party shutter project
猜你喜欢
![洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举](/img/a3/55bb71d39801ceeee421a0c8ded333.png)
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举

Which software can translate an English paper in its entirety?

JDBC tutorial

Optimization of streaming media technology

Cmake basic use

130 pages of PPT from the brick boss introduces the new features of Apache spark 3.2 & 3.3 in depth

实用系列丨免费可商用视频素材库

The privatization deployment of SaaS services is the most efficient | cloud efficiency engineer points north

PR FAQ, what about PR preview video card?

What website can you find English literature on?
随机推荐
Program analysis and Optimization - 9 appendix XLA buffer assignment
yolov5train. py
Bloom filter
返回二叉树中最大的二叉搜索子树的大小
经济学外文文献在哪查?
Talk with the interviewer about the pit of MySQL sorting (including: duplicate data problem in order by limit page)
CADD课程学习(4)-- 获取没有晶体结构的蛋白(SWISS-Model)
JDBC tutorial
CADD course learning (4) -- obtaining proteins without crystal structure (Swiss model)
Slf4j + Logback日志框架
[OJ] intersection of two arrays (set, hash mapping...)
PR FAQ, what about PR preview video card?
Leetcode skimming - game 280
Should you study kubernetes?
What is the standard format of a 2000-3000 word essay for college students' classroom homework?
95 pages of smart education solutions 2022
maya渔屋建模
Xcode real machine debugging
Missing number
Chapter 4 of getting started with MySQL: data types stored in data tables