title: Change LinearLayout height to 0 programmatically
body: <p>I am resizign <code>LinearLayout</code> from it's original height to <code>0</code> with:</p>
  
  <pre><code>ViewGroup.LayoutParams params = getLayoutParams();
  params.height = newHeight;
  requestLayout();
  </code></pre>
  
  <p>Everything works except <code>newHeight = 0</code> - layout's height changes back to its original height. How can I avoid it ?</p>
  
  <p>Setting visibility to <code>GONE</code> if <code>newHeight == 0</code> does not help.</p>