title: Panoramic Background animation in Android
body: <p><img src="https://i.stack.imgur.com/C11AY.png" alt="Panoramicbackground"></p>
  
  <p>I have a panoramic background as a sky that i want to move from left to right and then from right to left to simulate a moving clouds animation as a screen background .</p>
  
  <p>This should repeat indefinitely and after goin to the right most then return back to the left most..</p>
  
  <p>I have tried the following:</p>
  
  <pre><code>  Animation left = AnimationUtils.loadAnimation(MainActivity.this, com.icare.kids.R.anim.view_transition_out_right);
    left.setRepeatCount(Animation.INFINITE);
    left.setRepeatMode(Animation.REVERSE);
    left.setDuration(3000);
  
    findViewById(id.cloud).startAnimation(left);
  </code></pre>
  
  <p>But this does not seem to work... any solution for that ? </p>
  
  <p>I am currently setting the image to an ImageView as follows:</p>
  
  <pre><code>&lt;ImageView
      android:id="@+id/cloud"
      android:layout_width="3000dip"
      android:layout_height="wrap_content"
      android:layout_below="@id/topbar"
      android:scaleType="matrix"
      android:src="@drawable/bgpan" /&gt;
  </code></pre>
  
  <p>how can i set the image to the screen to start from the left most like this below, so to help in the panoramic animation effect:
  <img src="https://i.stack.imgur.com/Sex5V.png" alt="enter image description here"></p>