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);
quote page:
int gone view invisible, , doesn't take space layout purposes.
Comments
Post a Comment