[안드로이드] 상태바(statusbar) 높이(height) 구하기
·
Android
안녕하세요. 디자인을 받아 작업하다 보면 상태바(status bar)의 높이를 알아야 할 때가 있습니다. 이때 status bar의 높이를 알 수 있는 함수를 알려드리겠습니다. status bar 높이 구하기 public static int getStatusBarHeight(Context context) { int screenSizeType = (context.getResources().getConfiguration().screenLayout & Configuration.SCREENLAYOUT_SIZE_MASK); int statusbar = 0; if(screenSizeType != Configuration.SCREENLAYOUT_SIZE_XLARGE) { int resourceId = context...
유정주
'상태바 높이' 태그의 글 목록