title: Animate a custom Dialog
body: <p>I'm trying to have a custom dialog appear as though it's sliding down from a text view. Is this possible? I can't seem to apply any animation to dialog class. I've tried this line in the constructor, but it has no effect:</p>
  
  <p>this.getWindow().setWindowAnimations(R.anim.paranimation);</p>
  
  <p>I'm not even sure if the animation is correct, but I will be able adjust it once I see what it's doing. I'll list it below for the sake of completeness. I'm not looking for help on the actual animation, just the application to the dialog.</p>
  
  <p>paranimation.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:fromXDelta="-200%"
      android:toXDelta="0%"
      android:fromYDelta="200%"
      android:toYDelta="0%"
      android:duration="3000"
      android:zAdjustment="top"&gt;
  &lt;/translate&gt;
  </code></pre>