title: Dialog Transition Effects
body: <p>I am currently working on the transition effects for my dialog. Please refer to the image below: <img src="https://i.stack.imgur.com/ne3KF.png" alt="enter image description here"></p>
  
  <p>The entrance animation for my dialog should be top to middle. While the exit animation should be middle to top. I am using the following XML animations, but unfortunately, they're not working.</p>
  
  <p>slide_down.xml</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="1000"/&gt;
  &lt;/set&gt;
  </code></pre>
  
  <p>slide_up.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;translate xmlns:android="http://schemas.android.com/apk/res/android"
  android:fromYDelta="0%p" android:toYDelta="50%p"
  android:duration="1000"/&gt;
  </code></pre>
  
  <p>EDIT: This is not a usual <code>Dialog</code>. It is an <code>activity</code> applied with a <code>Theme.Dialog</code> in the <code>AndroidManifest.xml</code></p>