summaryrefslogtreecommitdiff
path: root/core/java/android/widget/TabHost.java
diff options
context:
space:
mode:
authorCharles Chen <charlesccchen@google.com>2019-07-24 19:45:16 +0800
committerCharles Chen <charlesccchen@google.com>2019-07-30 17:31:11 +0800
commit28a0e47963845bb70f8a55323a358f049ff49ee6 (patch)
treeaba16c8ca2544af62ed3afdecb98fcb833c0a08d /core/java/android/widget/TabHost.java
parent163976025250dc8a546ba19347bfcedd7b0b8ae2 (diff)
Deprecate TabHost and TabWidget
Since the core implementation of TabHost is LocalActivityManager, which was deprecated for several years. It does not make sense to maintain TabHost and TabWidget. Test: flash and build Bug: 137825207 Change-Id: Ifb62dbe68c8ada8499dd5336a189c803f2ae3dc1
Diffstat (limited to 'core/java/android/widget/TabHost.java')
-rw-r--r--core/java/android/widget/TabHost.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java
index 481704c80287..90cb1c8dfa03 100644
--- a/core/java/android/widget/TabHost.java
+++ b/core/java/android/widget/TabHost.java
@@ -46,7 +46,11 @@ import java.util.List;
* page. The individual elements are typically controlled using this container object, rather than
* setting values on the child elements themselves.
*
+ * @deprecated new applications should use fragment APIs instead of this class:
+ * Use <a href="{@docRoot}guide/navigation/navigation-swipe-view">TabLayout and ViewPager</a>
+ * instead.
*/
+@Deprecated
public class TabHost extends FrameLayout implements ViewTreeObserver.OnTouchModeChangeListener {
private static final int TABWIDGET_LOCATION_LEFT = 0;