TabView for Xamarin.Android: Tabs Position
RadTabView can position its tabs on its four edges: Top, Left, Right and Bottom. To set the tabs position simply set the TabsPosition
property:
tabView.TabsPosition = TabsPosition.Top;
Furthermore if the TabWidth
property is set, and the total width of the available tabs is less than the available screen area, developers can set TabAlignment
. The alignment can be Left, Right, Top, Bottom, Center and Stretch. For example:
tabView.TabStrip.TabsAlignment = TabsAlignment.Center;
Max visible tabs
The used inside the TabView TabStrip provides a MaxVisibleTabs property. It determines how many tabs will be shown on screen. If there are more tabs they will be shown in a scrollview;
tabView.TabStrip.Layout.MaxVisibleTabs = 5;