The new Toolbar
cannot be used for inflating multiple line objects, so it is impossible to add Tabs to it.
If you want to use a Toolbar
like a TabWidget
you can insert some Tab Objects to it, but only with the old Holo style.
Here there is a custom Library that uses v7 Toolbar
like TabWidget
with the new Material Design animations, but it uses the same methods from the old ActionBar Tabs
, so you can attach your ViewPager
to it.