Android - Layout Height not updating -
i have scrollview inside have linearlayout. linearlayout has views. ex:- linearlayout height 100. after removed views linearlayout same height 100. how update current height. 0 when no views present.
my code:
<scrollview android:layout_weight="1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:fillviewport="true"> <linearlayout android:layout_weight="1" android:layout_width="fill_parent" android:orientation="vertical" android:layout_height="wrap_content"> </linearlayout> </scrollview>
remove android:layout_weight="1" linearlayout if want 0 height if no views visible.
Comments
Post a Comment