title: How to slide an ImageView from left to right smoothly in Android?
body: <p>I need to make an <code>ImageView</code> slide from left to right of the screen with a smooth animation (I want the <code>ImageView</code> to be visible during the transition) I tried with the following code:</p>
  
  <pre><code>Display display = getWindowManager().getDefaultDisplay();
  Point size = new Point();
  display.getSize(size);
  int width = size.x;
  
  camion.animate()
      .translationX(width)
      .setDuration(2000)
      .setInterpolator(new LinearInterpolator())
      .setListener(new AnimatorListenerAdapter() {
          @Override
          public void onAnimationEnd(Animator animation) {
              super.onAnimationEnd(animation);
              //camion.setVisibility(View.GONE);
          }
      });
  </code></pre>
  
  <p>The <code>ImageView</code> moves but the animation is laggy and not smooth like I want to.
  What am I doing wrong on the code?</p>