ClassCastException when adding LayoutParams
<p>Which class do I have to use, when setting the <code>LayoutParams</code> of my <code>LinearLayout</code>? The following two are not working:</p>

<ol>
<li><code>linLayout.setLayoutParams(new ViewGroup.LayoutParams(50,50));</code></li>
<li><code>linLayout.setLayoutParams(new android.widget.LinearLayout.LayoutParams(50,50));</code></li>
</ol>

<p>if I get the params first, change them and set them back it's working. So I suppose the Params I get returned inherit from ViewGroup.LayoutParams...</p>

<p>Any idea? THX</p>
