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; 
		} 
	} 
 
	static final int EDGE_NONE = -1;
	static final int EDGE_LEFT = 0;
	static final int EDGE_RIGHT = 1;
	static final int EDGE_BOTH = 2;
 
	private static final float MAX_ZOOM = 3.0f;
	private static final float MID_ZOOM = 1.75f;