title: Android canvas draw a shape and move it from location A to B with animation duration
body: <p>I have been looking around for hours on how to draw a shape and add a duration while it moves from point a to point b using canvas.</p>
  
  <p>For example I have: </p>
  
  <pre><code>@Override
  protected void onDraw(Canvas canvas) {
      super.onDraw(canvas);
      canvas.drawCircle(40,40,40,paint);
  
      canvas.rotate(90, 50, 700);
  }
  </code></pre>
  
  <p>This draws the circle and it rotates 90 degrees, moving to x,y location. The problem is it goes straight to the location. I would like mine to have a duration so the user sees it move from point A to point B on x or y axis.</p>
  
  <p>Example:</p>
  
  <p>The square will start at x_position:0 and u_position: 0. Then over 5 seconds it will move to location x_position:50 and y_position:50.</p>
  
  <p>Is there a better way to accomplish this? I am assuming there is a much better way to accomplish this.</p>
  
  <p>I have tried the following:</p>
  
  <ol>
  <li><p><a href="http://www.compiletimeerror.com/2013/09/introduction-to-2d-drawing-in-android.html#.VtlEM_krKUk" rel="nofollow noreferrer">http://www.compiletimeerror.com/2013/09/introduction-to-2d-drawing-in-android.html#.VtlEM_krKUk</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/8712652/rotating-image-on-a-canvas-in-android">Rotating Image on A canvas in android</a></p></li>
  <li><p><a href="https://stackoverflow.com/questions/29381474/how-to-draw-a-circle-with-animation-in-android">How to draw a circle with animation in android with circle size based on a value</a></p></li>
  </ol>
  
  <p>This one I believe is doing parts right however I could not implement this:</p>
  
  <ol start="4">
  <li><a href="https://stackoverflow.com/questions/13456322/how-to-make-2d-graphic-transition-in-android-canvas">How to make 2D graphic transition in android canvas</a></li>
  </ol>