title: Seems like windowAnimationStyle is being ignored, how to animate custom dialog?
body: <p>I wish to animate my custom dialog as appearing from a specific point but I am having trouble setting animation to the dialog. </p>
  
  <p>The dialog is a basic <code>RelativeLayout</code> set as layout within a class that <code>extends</code> <code>Dialog</code>. </p>
  
  <p>As some answers here suggested I have tried setting <code>windowAnimations</code> to it like</p>
  
  <pre><code>final myCustomDialog dialog = new myCustomDialog(this); 
  dialog.getWindow().getAttributes().windowAnimations = R.style.CustomDialogTheme;
  </code></pre>
  
  <p>EDIT: setting theme in constructor seems to be working but the animations still don't work</p>
  
  <pre><code>final myCustomDialog dialog = new myCustomDialog(this, R.style.CustomDialogTheme); 
  </code></pre>
  
  <p>CustomDialogTheme style being</p>
  
  <pre><code>&lt;style name="CustomDialogTheme" parent="@android:style/Theme.Dialog"&gt;
  &lt;item name="android:windowAnimationStyle"&gt;@style/PauseDialogAnimation&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="PauseDialogAnimation"&gt;
      &lt;item name="android:windowEnterAnimation"&gt;@android:anim/fade_in&lt;/item&gt;
      &lt;item name="android:windowExitAnimation"&gt;@android:anim/fade_out&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>It just doesn't work, has no effect. I tried setting the same in <code>android:windowAnimationStyle</code> to the project theme and that worked for the activity.</p>
  
  <p>What am I doing wrong and how do I animate a custom dialog if this doesn't work anymore.</p>
  
  <p>Testing on Android 4.4.4 Paranoid Android with all animations set to 1x and Genymotion simulator for Nexus 5.</p>