title: How to disable "Window animation scale" programmatically on Android 4.0+ devices?
body: <p>I'm using a <strong>Service</strong> that displays a view using <code>WindowManager</code>, and animation occurs every time I change the view's size using</p>
  
  <pre><code>windowManagerLayoutParams.height = newHeight;
  ((WindowManager) getSystemService(WINDOW_SERVICE)).updateViewLayout(mMainLayout, windowManagerLayoutParams);
  </code></pre>
  
  <p>If I disable manually the scale animations, no animation occurs.
  Scale animation disabled manually like so:
  <a href="http://www.cultofandroid.com/11143/android-4-0-tip-how-to-find-and-disable-animations-for-a-snappier-experience/" rel="noreferrer">http://www.cultofandroid.com/11143/android-4-0-tip-how-to-find-and-disable-animations-for-a-snappier-experience/</a></p>
  
  <p><strong>Is there a way to disable the window scale animations for my application programmatically?</strong></p>