取得Android的屏幕状态栏的高度

来源:互联网 发布:程序员上班自我介绍 编辑:程序博客网 时间:2024/06/06 07:33
Rect outRect = new Rect();        getWindow().getDecorView().getWindowVisibleDisplayFrame(outRect);        Log.d("Status bar height","Status bar height::"+outRect.top+"::"+outRect.bottom);//StatusBarHeight=720        

原创粉丝点击