android - One element fill the whole screen after another gets Invisible? -


how make textview fill whole screen after button gets invisible?

<linearlayout xmlns:android="http://schemas.android.com/apk/res/android"               android:layout_width="fill_parent"               android:layout_height="fill_parent"         >     <linearlayout             android:layout_width="wrap_content"             android:layout_height="fill_parent"             >         <textview                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 />     </linearlayout>     <linearlayout             android:layout_width="wrap_content"             android:layout_height="fill_parent"             >         <button                 android:layout_width="wrap_content"                 android:layout_height="wrap_content"                 />     </linearlayout> </linearlayout> 

button gets invisible via menu item command

button.setvisibility(view.invisible); 

try

button.setvisibility(view.gone); 

more info

quote page:

int gone view invisible, , doesn't take space layout purposes.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -