Android Screen Size Get getScreenHeight(Display display)

Here you can find the source of getScreenHeight(Display display)

Description

get Screen Height

Declaration

public static int getScreenHeight(Display display) 

Method Source Code

//package com.java2s;

import android.graphics.Point;

import android.view.Display;

public class Main {
    public static int getScreenHeight(Display display) {
        Point size = getDisplaySize(display);
        return size.y;
    }//from   www. ja  v  a2  s . c o m

    public static Point getDisplaySize(Display display) {
        Point size = new Point();
        display.getSize(size);
        return size;
    }
}

Related

  1. getDisplayHeight(Context context)
  2. getDisplaySize(Display display)
  3. getDisplayWidth(Context context)
  4. getScreenHeight(Context context)
  5. getScreenHeight(Context context)
  6. getScreenPixel(Activity activity)
  7. getScreenWidth(Context context)
  8. getScreenWidth(Context context)
  9. getScreenWidth(Display display)