IT분야/Android
                
              [Android] 안드로이드 가로 세로 크기
                suroMind
                 2011. 1. 23. 11:58
              
              
            
            안드로이드 가로세로 크기 구하기
Display defaultDisplay = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
int width = defaultDisplay.getWidth(); // 가로
int height = defaultDisplay.getHeight(); // 세로
            
              
            Display defaultDisplay = ((WindowManager) getSystemService(WINDOW_SERVICE)).getDefaultDisplay();
int width = defaultDisplay.getWidth(); // 가로
int height = defaultDisplay.getHeight(); // 세로
        Log.e("suromind",width);
Log.e("suromind",height);
Log.e("suromind",height);