Code example for ImageView.ScaleType

Methods: ordinal

0
 
/** 
 * Methods that are hidden inside the ImageView Android implementation. 
 * @author Roman Mazur (Stanfy - http://www.stanfy.com) 
 */ 
final class ImageViewHiddenMethods { 
 
  /** Temp objects. */ 
  private static final RectF SRC_RECT = new RectF(), DST_RECT = new RectF();
 
  private ImageViewHiddenMethods() { /* hide */ } 
 
  private static Matrix.ScaleToFit scaleTypeToScaleToFit(final ScaleType st)  {
    switch (st) {
    case FIT_XY: return Matrix.ScaleToFit.FILL;
    case FIT_START: return Matrix.ScaleToFit.START;
    case FIT_CENTER: return Matrix.ScaleToFit.CENTER;
    case FIT_END: return Matrix.ScaleToFit.END;
    default: 
      return null; 
Connect your IDE to all the code out there  Get Codota for Java