title: change linear layout height programmatically in Android
body: <p>I am trying to change the height of linear layout programmatically. When I use </p>
  
  <pre><code>ll.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT));
  </code></pre>
  
  <p>I am getting exception:</p>
  
  <blockquote>
    <p>java.lang.ClassCastException: android.view.ViewGroup$LayoutParams </p>
  </blockquote>