From 28a0e47963845bb70f8a55323a358f049ff49ee6 Mon Sep 17 00:00:00 2001 From: Charles Chen Date: Wed, 24 Jul 2019 19:45:16 +0800 Subject: 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 --- core/java/android/widget/TabHost.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/java/android/widget/TabHost.java') 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 TabLayout and ViewPager + * instead. */ +@Deprecated public class TabHost extends FrameLayout implements ViewTreeObserver.OnTouchModeChangeListener { private static final int TABWIDGET_LOCATION_LEFT = 0; -- cgit v1.2.3