title: TabView vs SegmentedBar
body: <p>I am creating SegmentedBar in native script. I am able to create segments but I am not able to add Label to segment view. </p>
  
  <pre><code>&lt;Page xmlns="http://www.nativescript.org/tns.xsd" loaded="pageLoaded"&gt;
    &lt;StackLayout&gt;
        &lt;SegmentedBar&gt;
            &lt;SegmentedBar.items&gt;
  
                &lt;SegmentedBarItem title="Segment 1"&gt;
                    &lt;SegmentedBarItem.view&gt;                      
                        &lt;Label text=" I am in segment bar 1"/&gt;
                    &lt;/SegmentedBarItem.view&gt;
                &lt;/SegmentedBarItem&gt;
  
                &lt;SegmentedBarItem title="Segment 2"&gt;
                    &lt;SegmentedBarItem.view&gt;
                      &lt;Label text=" I am in segment bar 2"/&gt;
                    &lt;/SegmentedBarItem.view&gt;
                &lt;/SegmentedBarItem&gt;
  
            &lt;/SegmentedBar.items&gt;
        &lt;/SegmentedBar&gt;
    &lt;/StackLayout&gt;    
  &lt;/Page&gt;
  </code></pre>
  
  <p>What is the difference between SegmentedBar and TabView as both appear same.</p>