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...