title: Android rotate a bitmap. setDuration doesn't change speed
body: <p>I've a bitmap that I rotate with the following code. The problem is to setup rotate.setDuration. I try to change value up to 900000 but when I ACTION_UP bitmap rotate to starting position always at the same speed.</p>
  
  <pre><code>        switch (event.getAction()) {
          case MotionEvent.ACTION_DOWN: {
              mCircle.clearAnimation();
              angleDegree = Math.toDegrees(Math.atan2(x - xc, yc - y));
              if (angleDegree&gt;0){angleDegree=angleDegree-360;}
              angleDifference =angleDegree;      
              mCurrAngle =angleDegree-angleDifference;
              mPrevAngle = mCurrAngle;
              break;
          }
          case MotionEvent.ACTION_MOVE: {
              angleDegree = Math.toDegrees(Math.atan2(x - xc, yc - y));
              if (angleDegree&gt;0){angleDegree=angleDegree-360;}
              mCurrAngle =angleDegree-angleDifference;
              mPrevAngle = mCurrAngle;
              animate(mPrevAngle, mCurrAngle, 0);
              break;
          }
          case MotionEvent.ACTION_UP : {
              timeback = 9000000;
              mPrevAngle = mCurrAngle = 0;
              animate(mPrevAngle, mCurrAngle, timeback);
              break;
          }
          }
  
      private void animate(double fromDegrees, double toDegrees, long setDuration) {
          final RotateAnimation rotate = new RotateAnimation((float) fromDegrees, (float) toDegrees,
                  RotateAnimation.RELATIVE_TO_SELF, 0.5f,
                  RotateAnimation.RELATIVE_TO_SELF, 0.5f);
          rotate.setDuration(setDuration);
          rotate.setFillEnabled(true);
          rotate.setFillAfter(true);
          mCircle.startAnimation(rotate);
  }
  </code></pre>