title: Disabling (fade in and fade out) dialog box animation
body: <p>I'm novice programmist and I have problem with disabling dialog box animation (fade in and fade out).</p>
  
  <p>I tried to to it using empty style and set it by changing</p>
  
  <pre><code>final AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
  </code></pre>
  
  <p>into </p>
  
  <pre><code>final AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(getActivity(), R.style.NoAnimation));
  </code></pre>
  
  <p>Background of dialog box became black, positive and negatice button changed into &lt;2.1 - 4.0) android style, but fade in and fade out animation effect remained...</p>
  
  <p>My style: </p>
  
  <pre><code>&lt;style name="DialogNoAnimation"&gt;
      &lt;item name="android:windowEnterAnimation"&gt;@anim/enter&lt;/item&gt;
      &lt;item name="android:windowExitAnimation"&gt;@anim/exit&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="NoAnimation" parent="@android:style/Theme.Dialog"&gt;
      &lt;item name="android:windowAnimationStyle"&gt;@style/DialogNoAnimation&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>Any ideas how can I eliminate this animation?</p>