I would like to implement tabs under my toolbar. With the actionbar you did it with
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS)
but now i searched everywhere and can't find it for the toolbar.
I just want a slideview with 3 tabs. It would be nice if someone can help me with it.
Use ViewPager
for the tab contents, and your choice of tabbed indicator for the tabs:
PagerTabStrip
TabPageIndicator
from the ViewPagerIndicator libraryPagerSlidingTabStrip
ViewPager
Or, use FragmentTabHost
, if you prefer.
The old action bar tabs are deprecated and specifically are not a part of Toolbar
.