Skip to content

Instantly share code, notes, and snippets.

@ChrisFlannagan
Last active October 30, 2016 15:53
Show Gist options
  • Save ChrisFlannagan/3e74f87b5769b1f00f4f48f28faf3107 to your computer and use it in GitHub Desktop.
Save ChrisFlannagan/3e74f87b5769b1f00f4f48f28faf3107 to your computer and use it in GitHub Desktop.
<Page xmlns="http://schemas.nativescript.org/tns.xsd" loaded="loaded" navigatingTo="onNavigatingTo" navigatingFrom="onNavigatingFrom"
horizontalAlignment="stretch" verticalAlignment="stretch">
<StackLayout orientation="vertical" horizontalAlignment="stretch" verticalAlignment="stretch">
<Label id="timerLabel" text="3:00" horizontalAlignment="center" verticalAlignment="center" />
<GridLayout width="100%" columns="auto,auto" height="50">
<Button text="Start Timer" horizontalAlignment="center" col="0" tap="starttimer" />
<Button text="Stop Timer" horizontalAlignment="center" col="1" tap="stoptimer" />
</GridLayout>
<StackLayout id="main-layout" orientation="vertical" horizontalAlignment="stretch" backgroundColor="#CCCCCC" verticalAlignment="stretch">
</StackLayout>
</StackLayout>
</Page>
@kostasx
Copy link

kostasx commented Aug 23, 2016

There some horizotnalAlignment and veritcalAlignment typos that need to be renamed to horizontalAlignment and verticalAlignment respectively.
Thanks for sharing!

@ChrisFlannagan
Copy link
Author

Ah, thank you!! Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment