title: How to animate a dialog to slide from the bottom of a screen to the middle without bounce?
body: <p>I want to inflate a view that will be my "no network dialog". I created a custom layout that I now want to inflate and display. The conflict I am running into is that the animation does not work. I want the dialog to slide in from the bottom of the screen to the middle and then bounce at the end. Here is what I am working with.</p>
  
  <p>styles.xml</p>
  
  <pre><code>&lt;!-- animation for network dialog --&gt;
  &lt;style name="DialogSlideAnim" parent="@android:style/Theme.Dialog"&gt;
      &lt;item name="android:windowNoTitle"&gt;true&lt;/item&gt;
      &lt;item name="android:backgroundDimEnabled"&gt;true&lt;/item&gt;
      &lt;item name="android:windowAnimationStyle"&gt;@style/DialogAnimation&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="DialogAnimation"&gt;
      &lt;item name="android:windowEnterAnimation"&gt;@anim/slide_up_bounce&lt;/item&gt;
      &lt;item name="android:windowExitAnimation"&gt;@anim/fade_out&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Here is my slide_up_bounce.xml
  
  </p>
  
  <pre><code>&lt;scale
      android:duration="600"
      android:fromXScale="1"
      android:fromYScale="0.5"
      android:pivotX="50%"
      android:pivotY="0%"
      android:toXScale="1.0"
      android:toYScale="1.0" /&gt;
  
  &lt;alpha
      android:duration="600"
      android:fromAlpha="0.0"
      android:toAlpha="1.0" /&gt;
  
  &lt;translate
      android:duration="600"
      android:fromYDelta="50%"
      android:toYDelta="0%" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>In an Utility class I have a method that looks like</p>
  
  <pre><code>public static void networkDialog(Context context) {
      final Dialog dialog = new Dialog(context, R.style.DialogAnimation);
      dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);
      LayoutInflater inflater = LayoutInflater.from(context);
      View view = inflater.inflate(R.layout.dialog_network, null);
      dialog.setContentView(view);
  
      ImageButton ibRefresh = (ImageButton) view.findViewById(R.id.ib_refresh);
  </code></pre>
  
  <p>}</p>
  
  <p>At the moment, the dialog displays instantly without the sliding or bouncing. How can I resolve this, or should I be trying to take a different approach to make this happen? Thanks in advance!</p>