title: Android Animation slide up
body: <p>How can I make slide up animation? I got this code thanks to user Romain Piel in <a href="https://stackoverflow.com/questions/9294446/android-animation-for-new-activity">this topic</a>. But I can't figure how to make reverse effect. That Animation is for slide down but I want slide up. How can I do that? I am sorry if this is a bad question but animations are always confusing me.
  I have tried with other codes too but it doesn't look nice.</p>
  
  <pre><code>overridePendingTransition(R.anim.push_down_in,R.anim.push_down_out);
  </code></pre>
  
  <p>R.anim.push_down_in:</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="-100%p" android:toYDelta="0" android:duration="900"/&gt;
  &lt;/set&gt;  
  </code></pre>
  
  <p>R.anim.push_down_out:</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="100%p" android:duration="900"/&gt;
  &lt;/set&gt;  
  </code></pre>