New to Telerik UI for Xamarin? Download free 30-day trial

TabView for Xamarin.Android: Layouts

RadTabView Beta provides two layouts out of the box. These are TabStripOverflowLayout and TabStripScrollLayout. The default layout is the scroll layout. The tab view layouts share a common base class called TabStripLayoutBase which in turn implements the TabStripLayout interface.

TabStripScrollLayout

TabStripScrollLayout arranges tabs in a scroll view. If the maximum number of visible tabs is exceeded, the user can scroll to see the remaining tabs. Using TabStripScrollLayout is as easy as creating an instance:

this.tabView.getTabStrip().setTabStripLayout(new TabStripScrollLayout());

TabStripOverflowLayout

TabStripOverflowLayout puts tabs in a popup after the number of tabs exceeds max tabs. The popup is closed when a tab from the popup is selected or when the user taps outside the popup. To use TabStripOverflowLayout simply create an instance:

this.tabView.getTabStrip().setTabStripLayout(new TabStripOverflowLayout());
In this article