private void captureValues(TransitionValues transitionValues) {
    if (transitionValues.view instanceof GenericDraweeView) {
      transitionValues.values.put(
          PROPNAME_BOUNDS,
          new Rect(0, 0, transitionValues.view.getWidth(), transitionValues.view.getHeight()));
    }
  }
This Transition animates changes of {@link GenericDraweeView} between two ScaleTypes

<p>In combination with ChangeBounds, DraweeTransition allows GenericDraweeViews that change size,
shape, or {@link ScalingUtils.ScaleType} to animate contents smoothly.
drawee/src/main/java/com/facebook/drawee/view/DraweeTransition.java