title: I want to set height of Spinner programmatically like setHeight available on other widgets
body: <p>I want to hide spinner form view i.e. set height to zero. (I have tried setVisibility. But it just hides the spinner. The widget still occupies the same height as before.)</p>
  
  <p>And then I want to show Spinner i.e. set height of spinner to "wrap_content" on an event.</p>
  
  <p>How can I do it?</p>
  
  <p>Please note that I want to do this on the spinner widget itself and not on the adapter's view.</p>