// 设置进度条的显示百分比
 private void setTriggerPercentage(float percent) {
   if (percent == 0f) {
     // No-op. A null trigger means it's uninitialized, and setting it to zero-percent
     // means we're trying to reset state, so there's nothing to reset in this case.
     mCurrPercentage = 0;
     return;
   }
   mCurrPercentage = percent;
   if (((mMode == Mode.PULL_FROM_START) || (mMode == Mode.BOTH))
       && mLastDirection != Mode.PULL_FROM_END
       && !mLoading) {
     mProgressBar.setTriggerPercentage(percent);
   } else if (((mMode == Mode.PULL_FROM_END) || (mMode == Mode.BOTH))
       && mLastDirection != Mode.PULL_FROM_START
       && !mRefreshing) {
     mProgressBarBottom.setTriggerPercentage(percent);
   }
 }
 @Override
 public void applyTransformation(float interpolatedTime, Transformation t) {
   float percent = mFromPercentage + ((0 - mFromPercentage) * interpolatedTime);
   mProgressBar.setTriggerPercentage(percent);
 }