Code example for Point

Methods: getSize

0
		mPostIndexAuthor.setText(data);
	} 
 
	private int getOneIndexImageHeight() { 
		int Measuredheight = 0;
		Point size = new Point();
		WindowManager w = mContext.getWindowManager();
 
		if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB_MR2) {
			w.getDefaultDisplay().getSize(size);
			Log.d("width", String.valueOf(size.x));
			Log.d("height", String.valueOf(size.y));
			Measuredheight = size.y;
		} else { 
			Display d = w.getDefaultDisplay();
			Measuredheight = d.getHeight();
		} 
 
		return Measuredheight;
	}