Merge pull request #2963 from NativeScript/tsenov/tabView

Wrapped all buttons in ScrollView
This commit is contained in:
SvetoslavTsenov
2016-10-25 17:06:30 +03:00
committed by GitHub

View File

@ -1,8 +1,10 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd"> <Page
xmlns="http://schemas.nativescript.org/tns.xsd">
<TabView id="test-element"> <TabView id="test-element">
<TabView.items> <TabView.items>
<TabViewItem title="IteM onE"> <TabViewItem title="IteM onE">
<TabViewItem.view> <TabViewItem.view>
<ScrollView>
<StackLayout> <StackLayout>
<Button text="tab-text-color: green;" tap="applyTap" tag="tab-text-color: green;" style.fontSize="8"/> <Button text="tab-text-color: green;" tap="applyTap" tag="tab-text-color: green;" style.fontSize="8"/>
<Button text="tab-background-color: yellow;" tap="applyTap" tag="tab-background-color: yellow;" style.fontSize="8"/> <Button text="tab-background-color: yellow;" tap="applyTap" tag="tab-background-color: yellow;" style.fontSize="8"/>
@ -15,6 +17,7 @@
<Button text="all" tap="applyTap" tag="tab-text-color: green; tab-background-color: yellow; selected-tab-text-color: red; android-selected-tab-highlight-color: orange; text-transform: uppercase;" style.fontSize="8"/> <Button text="all" tap="applyTap" tag="tab-text-color: green; tab-background-color: yellow; selected-tab-text-color: red; android-selected-tab-highlight-color: orange; text-transform: uppercase;" style.fontSize="8"/>
<Button text="reset" tap="resetTap" style.fontSize="8"/> <Button text="reset" tap="resetTap" style.fontSize="8"/>
</StackLayout> </StackLayout>
</ScrollView>
</TabViewItem.view> </TabViewItem.view>
</TabViewItem> </TabViewItem>
<TabViewItem title="IteM twO"> <TabViewItem title="IteM twO">