title: Android Alpha / Translate Animations
body: <p>I've got this animation which should move the applied view up out of the view whilst fading, move it back to below the view then back into the view whilst fading.</p>
  
  <p>The problem is that it doesn't seem to fade - the opacity of the applied view is always <code>0.5</code>.</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;set xmlns:android="http://schemas.android.com/apk/res/android"&gt;
  
      &lt;translate
          android:fromYDelta="0"
          android:toYDelta="-200"
          android:interpolator="@android:anim/accelerate_interpolator"
          android:duration="1995"
          android:startOffset="3000" /&gt;
      &lt;translate
          android:fromYDelta="200"
          android:toYDelta="0"
          android:interpolator="@android:anim/accelerate_interpolator"
          android:duration="1995"
          android:startOffset="8005" /&gt;   
  
      &lt;alpha
          android:duration="500"
          android:fromAlpha="1.0"
          android:interpolator="@android:anim/accelerate_interpolator"
          android:repeatMode="reverse"
          android:startOffset="3000"
          android:toAlpha="0.5" /&gt;
      &lt;alpha
          android:duration="1995"
          android:fromAlpha="0.5"
          android:interpolator="@android:anim/accelerate_interpolator"
          android:repeatMode="reverse"
          android:startOffset="8005"
          android:toAlpha="1.0" /&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>I've tried a number of things, nesting them in sets, removing the interpolator etc... The only thing that worked is using the example given in this SO question: <a href="https://stackoverflow.com/questions/11894261/android-two-alpha-animations">android two alpha animations</a> which leads me to believe it's something to do with running the alpha animation when combined with the translate animation.</p>
  
  <p>Thanks!</p>