Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Getting Started with NativeScript

You're reading from   Getting Started with NativeScript Explore the possibility of building truly native, cross-platform mobile applications using your JavaScript skill—NativeScript!

Arrow left icon
Product type Paperback
Published in Jan 2016
Publisher
ISBN-13 9781785888656
Length 168 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Nathanael J. Anderson Nathanael J. Anderson
Author Profile Icon Nathanael J. Anderson
Nathanael J. Anderson
Arrow right icon
View More author details
Toc

Layouts

I will cover the different Layout types that NativeScript offers. We have already covered StackLayout in the previous chapters. To keep things in one place for your easy reference, I will briefly cover StackeLayout again. In addition to the descriptions here, the Layouter program, containing a sample of each of these layouts, is included with this book or can be downloaded from https://github.com/GettingStartedWithNativeScript.

StackLayout

The StackLayout allows you to stack things either vertically or horizontally. It will only put a single item into each layout slot. The layout slot will be either the entire width of the screen or the full height of the screen. Each item can use as much height or width in the stacking direction. For example in horizontal layout, black needed way less room than light black. In the vertical layout, you can see shade 2 uses more height than shade 1. To choose the horizontal version, you need to set the orientation= "horizontal". By default...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime