Android - Layout Height not updating
<p>I have a Scrollview inside that i have a LinearLayout. LinearLayout has some views.
For ex:- My LinearLayout height is 100.
After i removed all views from LinearLayout also i get the same height as 100.
How to update the current height. That is 0 when no views is present.</p>

<p>My code:</p>

<pre><code>&lt;ScrollView android:layout_weight="1" android:layout_width="fill_parent"
    android:layout_height="wrap_content" android:fillViewport="true"&gt;
    &lt;LinearLayout android:layout_weight="1"
 android:layout_width="fill_parent"
        android:orientation="vertical" android:layout_height="wrap_content"&gt;

    &lt;/LinearLayout&gt;

&lt;/ScrollView&gt;
</code></pre>
