Android Display Density Get getBounds(Display d, Rect r)

Here you can find the source of getBounds(Display d, Rect r)

Description

get Bounds

Declaration

protected static Rect getBounds(Display d, Rect r) 

Method Source Code

//package com.java2s;

import android.graphics.Rect;

import android.view.Display;

public class Main {
    protected static Rect getBounds(Display d, Rect r) {
        return new Rect(r.left, r.top, d.getWidth() - r.right,
                d.getHeight() - r.bottom);
    }//from   ww  w.  j av  a  2s  . c  om
}

Related

  1. getDensity(Context context)
  2. getDensitySize(Context context, int size)
  3. applyDimension(int unit, float value, DisplayMetrics metrics)
  4. getDisplayPPI()