状态栏高度

来源:互联网 发布:电话线插网络 编辑:程序博客网 时间:2024/05/17 01:24
  • Rect frame = new Rect();
  • getWindow().getDecorView().getWindowVisibleDisplayFrame(frame);
  • int statusBarHeight = frame.top;
0 0