title: getHeight() vs getLayoutParams().height
body: <p>What is the difference between <code>getHeight()</code> and <code>getLayoutParams().height</code> of a <code>View</code>? I have a <code>View</code> (GoogleAdView) and I want to hide it, I set <code>getLayoutParams().height</code> to zero but the ad's height (<code>ad.getHeight()</code>) is not zero. </p>
  
  <p>Is there a way to hide the <code>View</code> so that it doesn't occupy space in the layout? </p>
  
  <p>I've tried to set its visibility to <code>GONE</code> or to set <code>ad.getLayoutParams().height</code> to zero but this doesn't work.</p>