Code example for ImageView

Methods: getContext

0
			case MATRIX:
				throw new IllegalArgumentException(scaleType.name() + " is not supported in PhotoView");
 
			default: 
				return true; 
		} 
	} 
 
	/** 
	 * Set's the ImageView's ScaleType to Matrix. 
	 */ 
	private static void setImageViewScaleTypeMatrix(ImageView imageView) {
		if (null != imageView) {
			if (imageView instanceof PhotoView) {
				/** 
				 * PhotoView sets it's own ScaleType to Matrix, then diverts all 
				 * calls setScaleType to this.setScaleType. Basically we don't 
				 * need to do anything here 
				 */ 
			} else { 
				imageView.setScaleType(ScaleType.MATRIX);