From 372bb98e8acf4a75401f0bfa58afcd2e493db156 Mon Sep 17 00:00:00 2001 From: Chris Banes Date: Tue, 3 Nov 2015 13:36:35 +0000 Subject: Update TabLayout demo to use new ViewPager functionality Also removed an old unused layout file BUG: 20908355 Change-Id: I95d79f7faec68122b43c68b621af4121c52c17aa --- .../SupportDesignDemos/res/layout/design_tabs.xml | 41 ------------ .../res/layout/design_tabs_viewpager.xml | 9 ++- .../support/design/widget/TabLayoutUsage.java | 78 ++++++++++------------ 3 files changed, 42 insertions(+), 86 deletions(-) delete mode 100644 samples/SupportDesignDemos/res/layout/design_tabs.xml (limited to 'samples') diff --git a/samples/SupportDesignDemos/res/layout/design_tabs.xml b/samples/SupportDesignDemos/res/layout/design_tabs.xml deleted file mode 100644 index b52d80833..000000000 --- a/samples/SupportDesignDemos/res/layout/design_tabs.xml +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - diff --git a/samples/SupportDesignDemos/res/layout/design_tabs_viewpager.xml b/samples/SupportDesignDemos/res/layout/design_tabs_viewpager.xml index f25a3ce5f..11ddca639 100644 --- a/samples/SupportDesignDemos/res/layout/design_tabs_viewpager.xml +++ b/samples/SupportDesignDemos/res/layout/design_tabs_viewpager.xml @@ -54,19 +54,22 @@ android:id="@+id/btn_add_tab" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:text="@string/add_tab"/> + android:text="@string/add_tab" + android:onClick="addTab"/>