private static void setImageViewScaleTypeMatrix ( ImageView imageView ) { /** * PhotoView sets its own ScaleType to Matrix, then diverts all calls * setScaleType to this.setScaleType automatically. */ if ( null != imageView && ! ( imageView instanceof IPhotoView ) ) { if ( ! ScaleType . MATRIX . equals ( imageView . getScaleType ( ) ) ) { imageView . setScaleType ( ScaleType . MATRIX ) ; } } }
Sets the ImageView s ScaleType to Matrix .