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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -