test(safe-area): update wrap layout examples

This commit is contained in:
Vasil Chimev
2018-07-26 16:41:47 +03:00
committed by Martin Yankov
parent 017534c30d
commit 3414f3660e
8 changed files with 31 additions and 11 deletions

View File

@@ -5,10 +5,10 @@
</ActionBar>
<StackLayout>
<Button text="Component Examples" tap="onNavigate" route="component/component-page"></Button>
<Button text="GridLayout Examples" tap="onNavigate" route="gridlayout/gridlayout-page"></Button>
<Button text="ScrollView Examples" tap="onNavigate" route="scrollview/scrollview-page"></Button>
<Button text="ListView Examples" tap="onNavigate" route="listview/listview-page" />
<Button text="Component Examples" tap="onNavigate" route="component/component-page"></Button>
<Button text="WrapLayout Examples" tap="onNavigate" route="wraplayout/wraplayout-page"></Button>
</StackLayout>
</Page>

View File

@@ -1,5 +1,5 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:fragments="wraplayout/fragments">
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:fragments="wraplayout/fragments" backgroundColor="LightGreen">
<ActionBar>
<Label text="Action Bar"></Label>

View File

@@ -0,0 +1,10 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:fragments="wraplayout/fragments" backgroundColor="LightGreen">
<ActionBar>
<Label text="Action Bar"></Label>
</ActionBar>
<fragments:vwrap-fragment></fragments:vwrap-fragment>
</Page>

View File

@@ -1,6 +1,4 @@
<WrapLayout orientation="horizontal" backgroundColor="LightGreen">
<Label text="Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet" height="100%" backgroundColor="LightPink"></Label>
<Label text="Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet" backgroundColor="LightGray"></Label>
<!-- <Label text="Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet" backgroundColor="LightYellow"></Label> -->
<!-- <Label text="Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet" backgroundColor="LightCyan"></Label> -->
<Button text="Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet" height="100%" backgroundColor="LightPink"></Button>
<Button text="H" backgroundColor="Pink"></Button>
</WrapLayout>

View File

@@ -0,0 +1,4 @@
<WrapLayout orientation="vertical" backgroundColor="LightGreen">
<Button text="Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet Lorem ipsum dolor sit amet" height="100%" backgroundColor="LightPink"></Button>
<Button text="V" backgroundColor="Pink"></Button>
</WrapLayout>

View File

@@ -1,5 +1,5 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:fragments="wraplayout/fragments" actionBarHidden="true">
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:fragments="wraplayout/fragments" actionBarHidden="true" backgroundColor="LightGreen">
<fragments:hwrap-fragment></fragments:hwrap-fragment>

View File

@@ -0,0 +1,6 @@
<Page xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:fragments="wraplayout/fragments" actionBarHidden="true" backgroundColor="LightGreen">
<fragments:vwrap-fragment></fragments:vwrap-fragment>
</Page>

View File

@@ -7,11 +7,13 @@
<StackLayout horizontalAlignment="center">
<StackLayout>
<Label text="Pages w/ ActionBar"></Label>
<Button text="HWrap" tap="onNavigate" route="wraplayout/action-bar/wraplayout-page"></Button>
<Button text="HWrap" tap="onNavigate" route="wraplayout/action-bar/hwrap-page"></Button>
<Button text="VWrap" tap="onNavigate" route="wraplayout/action-bar/vwrap-page"></Button>
</StackLayout>
<StackLayout>
<Label text="Pages w/o ActionBar"></Label>
<Button text="HWrap" tap="onNavigate" route="wraplayout/no-action-bar/wraplayout-page"></Button>
<Button text="HWrap" tap="onNavigate" route="wraplayout/no-action-bar/hwrap-page"></Button>
<Button text="VWrap" tap="onNavigate" route="wraplayout/no-action-bar/vwrap-page"></Button>
</StackLayout>
</StackLayout>