title: How to animate a path on an Android Canvas
body: <p>Is possible to attach an animator to a path?</p>
  <p>Is there any other way to draw animated lines on the Canvas?</p>
  <p>I searched this before I posted but I couldn’t find anything. In two other posts <a href="https://stackoverflow.com/questions/16703666/draw-a-path-as-animation-on-canvas">Draw a path as animation on Canvas in Android</a> and <a href="https://stackoverflow.com/questions/12037709/how-to-draw-a-path-on-an-android-canvas-with-animation">How to draw a path on an Android Canvas with animation</a> there are workaround solutions which does not work for me.</p>
  <p>I post my code inside the onDraw method to specify what exactly I want.</p>
  <pre><code>paint.setStyle(Paint.Style.STROKE);
      paint.setStrokeWidth(2);
      paint.setColor(Color.BLACK);
  
      Path path = new Path();
      path.moveTo(10, 50);   // THIS TRANSFORMATIONS TO BE ANIMATED!!!!!!!!
      path.lineTo(40, 50);
      path.moveTo(40, 50);
      path.lineTo(50, 40);
      // and so on...
  
      canvas.drawPath(path, paint);
  </code></pre>