当前位置:网站首页>Andorid gets the system title bar height
Andorid gets the system title bar height
2022-07-03 00:24:00 【Light language accumulation】
// Get the status bar height
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;
}
边栏推荐
猜你喜欢
UART、RS232、RS485、I2C和SPI的介绍
Which websites can I search for references when writing a thesis?
Matlab 信号处理【问答笔记-1】
多进程编程(一):基本概念
Chapter 3 of getting started with MySQL: database creation and operation
Additional: token; (don't read until you finish writing...)
洛谷_P1149 [NOIP2008 提高组] 火柴棒等式_枚举打表
Digital twin smart factory develops digital twin factory solutions
RTP 接发ps流工具改进(二)
有哪些比较推荐的论文翻译软件?
随机推荐
SQL query statement parameters are written successfully
How to specify const array in the global scope of rust- How to specify const array in global scope in Rust?
Understanding and application of least square method
国外的论文在那找?
Implement the foreach method of array
130 pages of PPT from the brick boss introduces the new features of Apache spark 3.2 & 3.3 in depth
NC24840 [USACO 2009 Mar S]Look Up
Missing number
JVM foundation review
Pytorch里面多任务Loss是加起来还是分别backward?
Interface automation coverage statistics - used by Jacobo
Nc20806 District interval
AcWing_188. 武士风度的牛_bfs
sysdig分析容器系统调用
论文的设计方案咋写?
Which websites can I search for references when writing a thesis?
LeedCode1480.一维数组的动态和
MySQL advanced learning notes (4)
form表单实例化
洛谷_P2010 [NOIP2016 普及组] 回文日期_折半枚举