Code example for ZoomControls

Methods: getMeasuredHeightgetMeasuredWidth

0
		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)
	{ 
		imageView.setColorFilter(filter);
	} 
 
	private void updateScaleType() 
	{ 
		if (orientation > 0 || enableZoomControls) {
Stop searching for code, let great code find you!  Add Codota to your java IDE