Code example for Display

Methods: getMetrics

0
     */ 
    private void initDisplaySize() { 
        final WindowManager w = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);
        _display = w.getDefaultDisplay();
        final DisplayMetrics dm = new DisplayMetrics();
        _display.getMetrics(dm);
    } 
    // ////////////////////// 
    // Inner and Anonymous Classes 
} 
Stop searching for code, let great code find you!  Add Codota to your java IDE