Using a SegmentedBar inside a NativeScript project gives you a simple way to define a collection of tabbed views.
The SegmentedBar’s selectedIndexChange event is emitted you for every changes of the component’s selectedIndex.
Note: The property selectedBackgroundColor will behave differently on different platforms. On Android, it will apply color for the underline of the selected bar item, while on iOS, it will apply background color for the whole selected bar item.