title: Android animate view from left to right
body: <p>I have draw view. It's a place where user can make a signature. When user click button I want to make some kind of scanner effect - draw view background will change from left to right side ("progress" of scanning). Right now I created an animation but it changes whole whole background in one time. I need to make it linear - from left to right. Any idea how to achieve this effect ? :)</p>
  
  <p>My View :</p>
  
  <pre><code> &lt;com.rm.freedrawview.FreeDrawView
          android:id="@+id/draw_layout"
          android:layout_width="400dp"
          android:layout_height="200dp"
          android:background="@drawable/border_background"
          app:paintAlpha="255"
          app:paintColor="@color/black"
          app:paintWidth="2dp"
          app:resizeBehaviour="crop"
          android:layout_centerHorizontal="true"
          android:layout_marginTop="400dp"/&gt;
  </code></pre>
  
  <p>And this is my animation :</p>
  
  <pre><code>@OnClick(R.id.next_button)
      public void openActivity(){
  
          int colorFrom = getResources().getColor(R.color.red);
          int colorTo = getResources().getColor(R.color.black);
          ValueAnimator colorAnimation = ValueAnimator.ofObject(new ArgbEvaluator(), colorFrom, colorTo);
          colorAnimation.setDuration(1000);
          colorAnimation.addUpdateListener(new ValueAnimator.AnimatorUpdateListener() {
  
              @Override
              public void onAnimationUpdate(ValueAnimator animator) {
                  mDraw.setBackgroundColor((int) animator.getAnimatedValue());
  
              }
  
          });
          colorAnimation.start();
      }
  </code></pre>