title: Make activity animate from top to bottom
body: <p>I am writing an Android app where I want the activity to appear by animating in from the bottom of the screen to the top. I am able to do this with code from here:</p>
  
  <ul>
  <li><a href="https://stackoverflow.com/questions/9683598/how-to-translate-the-activity-from-top-to-bottom-and-viceversa">How to translate the activity from top to bottom and viceversa?</a></li>
  </ul>
  
  <p>However, I am not able to do the vice-versa animation wherein the Activity would disappear by sliding from the top to the bottom of the screen.</p>
  
  <p>I used the code in the above link; the activity appears by sliding up, but when disappearing, it fades out, instead of sliding to the bottom. </p>
  
  <p>I even tried putting the code in <code>onCreate()</code> :</p>
  
  <pre><code>@Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      this.requestWindowFeature(Window.FEATURE_NO_TITLE);
      overridePendingTransition(R.anim.appear_from_bottom, R.anim.disappear_to_bottom);
      setContentView(R.layout.activity_all_metadata_display);
      initializePage();
  }
  </code></pre>