Code example for ImageView

Methods: getMeasuredHeightgetMeasuredWidth

0
	{ 
		computeBaseMatrix(); 
		imageView.setImageMatrix(getViewMatrix());
 
		int parentLeft = 0;
		int parentRight = right - left;
		int parentTop = 0;
		int parentBottom = bottom - top;
 
		// imageView.layout(parentLeft, parentTop, imageView.getMeasuredWidth(), imageView.getMeasuredHeight()); 
		imageView.layout(parentLeft, parentTop, parentRight, parentBottom);
		if (enableZoomControls && zoomControls.getVisibility() == View.VISIBLE) {
			int zoomWidth = zoomControls.getMeasuredWidth();
			int zoomHeight = zoomControls.getMeasuredHeight();
			zoomControls.layout(parentRight - zoomWidth, parentBottom - zoomHeight, parentRight, parentBottom);
		} 
	} 
 
	public void setColorFilter(ColorFilter filter)
	{ 
Contextual code suggestions in your IDE  Get Codota for Java