diff options
author | Gilles Debunne <debunne@google.com> | 2010-02-10 15:19:14 -0800 |
---|---|---|
committer | Gilles Debunne <debunne@google.com> | 2010-02-10 15:19:14 -0800 |
commit | ce2baf0d57ee3f1e8a7f07c030595f489407d1ce (patch) | |
tree | 520fbf5304052ee31359b9c1b3195ca4a09d6cdf /core/java | |
parent | 05b2f71ebd8c3e46cd0ca91d8b2313d2a3e530c2 (diff) | |
download | frameworks_base-ce2baf0d57ee3f1e8a7f07c030595f489407d1ce.zip frameworks_base-ce2baf0d57ee3f1e8a7f07c030595f489407d1ce.tar.gz frameworks_base-ce2baf0d57ee3f1e8a7f07c030595f489407d1ce.tar.bz2 |
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
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/widget/TabHost.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java index 78e2fee..d4d9063 100644 --- a/core/java/android/widget/TabHost.java +++ b/core/java/android/widget/TabHost.java @@ -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); } } |