Code example for ImageView.ScaleType

Methods: name, ordinal

0
	private static boolean isSupportedScaleType(final ScaleType scaleType) {
		if (null == scaleType) {
			return false; 
		} 
 
		switch (scaleType) {
			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) {
				/**