Android examples for User Interface:Screen Size
This Function return the Android Device Display Height.
//package com.java2s; import android.app.Activity; import android.content.Context; public class Main { /**/* w ww . j av a2 s . co m*/ * This Function return the Android Device Display Height. * * See below for @params. */ public static int getMyDispalyHight(Context ctx) { int Hight = ((Activity) ctx).getWindowManager().getDefaultDisplay() .getHeight(); return Hight; } }