Android_獲取系統狀態欄高度

獲取Android系統狀態欄的高度 方法一 狀態欄高度定義在Android系統尺寸資源中status_bar_height,系統給咱們提供了一個Resource類,經過這個類咱們能夠獲取資源文件java public int getStatusBarHeight() { //須要在Activity中執行 int height = 0; int resourceId = getResourc
相關文章
相關標籤/搜索