Use custom ViewPagerTabs
Use the custom ViewPagerTabs from contacts common.
In portrait, the tabs are below the toolbar. In landscape
the tabs are inside the toolbar.
Bug: 16158921
Bug: 15616182
Change-Id: I6c2067fdc10fa15ebd6e0fa93aa1c4f8e7cd45a7
diff --git a/res/layout/people_activity.xml b/res/layout/people_activity.xml
index 6b65945..2624818 100644
--- a/res/layout/people_activity.xml
+++ b/res/layout/people_activity.xml
@@ -19,6 +19,10 @@
android:layout_width="match_parent"
android:layout_height="match_parent">
+ <include
+ layout="@layout/people_activity_toolbar"
+ android:id="@+id/toolbar_parent" />
+
<!--
ViewPager for swiping between tabs. We put StrequentContactListFragment,
DefaultContactBrowseListFragment and GroupBrowseListFragment at runtime.
@@ -30,6 +34,7 @@
android:id="@+id/tab_pager"
android:layout_height="match_parent"
android:layout_width="match_parent"
+ android:layout_below="@id/toolbar_parent"
/>
<FrameLayout