How to change custom component height programatically
<p>I've prepared custom component based on LinearLayout. Whole component is defined in XML. Currently to use it you have to write: </p>

<pre><code>&lt;com.xxx.android.components.TopMenu 
    android:layout_width="fill_parent"
    android:layout_height="44dp"
/&gt;
</code></pre>

<p>Is it possible to set width and height in the java constructor? So it would be possible to write just: </p>

<pre><code>&lt;com.xxx.android.components.TopMenu /&gt;
</code></pre>

<p>I've tried to modify and set LayoutParams, but it didn't work for me.</p>
