code: public void setProgress(float progress) {
          if (progress < 0)
              mProgress = 0;
          else if (mProgress > 1)
              mProgress = 1;
          else
              mProgress = progress;
          stop();
          onProgressChange(mProgress);
          invalidateSelf();
      }
docs: Set the draw progress
  The progress include 0~1 float
  On changed, stop animation draw
  
  @param progress Loading progress