Code example for ImageView.ScaleType

Methods: ordinal

0
 * Simplify {@linkplain ScaleType ImageView's scale type} to 2 types: {@link #FIT_INSIDE} and {@link #CROP} 
 * 
 * @author Sergey Tarasevich (nostra13[at]gmail[dot]com) 
 * @since 1.6.1 
 */ 
public enum ViewScaleType { 
	/** 
	 * Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the 
	 * image will be equal to or less the corresponding dimension of the view. 
	 */ 
	FIT_INSIDE,
	/** 
	 * Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the 
	 * image will be equal to or larger than the corresponding dimension of the view. 
	 */ 
	CROP;
 
	/** 
	 * Defines scale type of ImageView. 
	 * 
	 * @param imageView {@link ImageView}