@Override @FloatRange(from = 0f, to = 1f) public float getAnimatedFraction() {
    if (composition == null) {
      return 0;
    }
    if (isReversed()) {
      return (getMaxFrame() - frame) / (getMaxFrame() - getMinFrame());
    } else {
      return (frame - getMinFrame()) / (getMaxFrame() - getMinFrame());
    }
  }
@ Override @ FloatRange ( from = 0f , to = 1f ) public float getAnimatedFraction ( ) { if ( composition == null ) { return 0 ; } if ( isReversed ( ) ) { return ( getMaxFrame ( ) - frame ) / ( getMaxFrame ( ) - getMinFrame ( ) ) ; } else { return ( frame - getMinFrame ( ) ) / ( getMaxFrame ( ) - getMinFrame ( ) ) ; } }
Returns the current value of the currently playing animation taking into
account direction, min and max frames.