Code example for Display

Methods: getSize

		this.unInitializedImages = new ArrayList<Integer>();
		WindowManager wm = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
		Display display = wm.getDefaultDisplay();
		Point size = new Point();
		displayWidth = size.x;
		displayHeight = size.y;
		Log.d(LOG_TAG, "width=" + displayWidth);
		Log.d(LOG_TAG, "height=" + displayHeight);
	protected void onSizeChanged(int width, int height, int oldWidth, int oldHeight) {
		// create enough columns to fill view's width, plus an extra column at 
		// either side to allow 
		// images to have diagonal offset across the screen. 
		numberOfColumns = width / (imageWidth + interImagePadding) + 2;
		// create enough rows to fill the view's height (adding an extra row at 
		// bottom if necessary).