Selection Indicator strip in Xamarin.Android TabView

9 Aug 20221 minute to read

Selection indicator strip can be used to indicate the selected index of the tab view control. It can be customized with the built in APIs available in SelectionIndicatorSettings of SfTabView.

Xamarin.Android TabView Selection Indicator

Selection indicator can be positioned below the title or above the title or else it can be filled in the entire selected header space.

var selectionIndicatorSettings = new SelectionIndicatorSettings();
selectionIndicatorSettings.Color = Color.Yellow;
selectionIndicatorSettings.Position = SelectionIndicatorPosition.Top;
selectionIndicatorSettings.StrokeThickness = 10;

tabView.SelectionIndicatorSettings = selectionIndicatorSettings;


Stroke thickness is not applicable when selection indicator’s position is set as Fill.