Code example for ImageView

Methods: getScaleType

0
	 *         <li>{@link ScaleType#CENTER_CROP}</li> 
	 *         <li>{@link ScaleType#MATRIX}</li> 
	 *         </ul> 
	 */ 
	public static ViewScaleType fromImageView(ImageView imageView) {
		switch (imageView.getScaleType()) {
			case FIT_CENTER:
			case FIT_XY:
			case FIT_START:
			case FIT_END:
			case CENTER_INSIDE:
				return FIT_INSIDE;
			case MATRIX:
			case CENTER:
			case CENTER_CROP:
			default: 
				return CROP;
		} 
	} 
}