title: Swipe animation from left to right infinite time
body: <p>I have an <code>imageview</code> in my <code>relativelayout</code>,my requirement is:</p>
  
  <p>i want to swipe the <code>imageview</code> from left to right and fadeout, again from left,fadein swipe left to right and fade out</p>
  
  <pre><code> ----                           ----
  |    |   swipe left to right   |    |  Fade out here
  |    |   --&gt; ---&gt; ---&gt;         |    |
  |    |                         |    |
   ----                           ----
  </code></pre>
  
  <p>Fade in again from left and Repeat:</p>
  
  <pre><code> ----                           ----
  |    |   swipe left to right   |    |  Fade out here
  |    |   --&gt; ---&gt; ---&gt;         |    |
  |    |                         |    |
   ----                           ----
  </code></pre>
  
  <p>this question doesn't match any other question on stack,so don't try to flag it.</p>
  
  <p>what i know is, i can use this:</p>
  
  <p>This is for left to right animation:</p>
  
  <pre><code>&lt;set xmlns:android="http://schemas.android.com/apk/res/android"
       android:shareInterpolator="false"&gt;
    &lt;translate android:fromXDelta="-100%" android:toXDelta="0%"
               android:fromYDelta="0%" android:toYDelta="0%"
               android:duration="700"/&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>and for fade in and fade out effect:</p>
  
  <pre><code>fadein.xml
  
      &lt;?xml version="1.0" encoding="UTF-8"?&gt;
         &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
           &lt;alpha android:fromAlpha="0.0" android:toAlpha="1.0" 
            android:interpolator="@android:anim/accelerate_interpolator" 
            android:duration="2000"/&gt;
       &lt;/set&gt;
  fadeout.xml
  
      &lt;?xml version="1.0" encoding="UTF-8"?&gt;
         &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
           &lt;alpha android:fromAlpha="1.0" android:toAlpha="0.0" 
            android:interpolator="@android:anim/accelerate_interpolator" 
            android:duration="2000"/&gt;
       &lt;/set&gt;
  </code></pre>
  
  <p>but the problem is how to relocate the imageview back at same position after fading it out from right to come back at left again and repeat.</p>