ui/src/main/java/com/stanfy/enroscar/views/ImageView.java
public ScaleType replaceScaleType(final ScaleType type) {
    blockLayoutRequests = true;
    final ScaleType result = getScaleType();
    setScaleType(type);
    blockLayoutRequests = false;
    return result;
  }
public ScaleType replaceScaleType(final ScaleType type) {
    blockLayoutRequests = true;
    final ScaleType result = getScaleType();
    setScaleType(type);
    blockLayoutRequests = false;
    return result;
  }
public ScaleType replaceScaleType ( final ScaleType type ) { blockLayoutRequests = true ; final ScaleType result = getScaleType ( ) ; setScaleType ( type ) ; blockLayoutRequests = false ; return result ; }
This method replaces the scale type of an image view without call to layout requests.
@param type new scale type
@return previous scale type
This method replaces the scale type of an image view without call to layout requests .