Code example for Display

Methods: getHeightgetSizegetWidth

0
 
	public static Point getSize(Display display)
	{ 
		if (Version.sdkStrictlyBelow(Build.VERSION_CODES.HONEYCOMB_MR2))
		{ 
			return new Point(display.getWidth(), display.getHeight());
		} 
		else 
		{ 
			Point outSize = new Point();
			display.getSize(outSize);
			return outSize;
		} 
	} 
 
	public static class Version 
	{ 
		private static final int buildVersion = Build.VERSION.SDK_INT;
 
		public static final boolean sdkAboveOrEqual(int value)
		{