Closed tabs removed from layout.
TabHost sets closed tabs visibility to GONE instead of INVISIBLE, so that they are no longer considered by the layout. Change-Id: I74efea13d43e3c7ce21476c7bbcb3bb1cca8bf29
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package android.widget;
|
||||
|
||||
import com.android.internal.R;
|
||||
|
||||
import android.app.LocalActivityManager;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
@@ -33,8 +35,6 @@ import android.view.Window;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import com.android.internal.R;
|
||||
|
||||
/**
|
||||
* Container for a tabbed window view. This object holds two children: a set of tab labels that the
|
||||
* user clicks to select a specific tab, and a FrameLayout object that displays the contents of that
|
||||
@@ -624,7 +624,7 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1");
|
||||
}
|
||||
|
||||
public void tabClosed() {
|
||||
mTabContent.setVisibility(View.INVISIBLE);
|
||||
mTabContent.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user