statusBarHeight static method
获取状态栏高度
返回结果: double 状态栏高度(单位: dp)
- iOS: 使用系统padding.top(动态获取刘海屏等)
- Android: 在低版本中可能有不同的表现,保底24dp
示例:
double statusH = DScreenUtil.statusBarHeight();
Implementation
static double statusBarHeight() {
return topSafeHeight();
}