February 2014
Beginner
1248 pages
62h 25m
English
You’ll now specify the VBox’s alignment, initial size and padding:
1. Specifying the VBox’s Alignment. A VBox’s alignment determines the layout positioning of the VBox’s children. In this app, we’d like each child node (the Label and the ImageView) to be centered horizontally in the scene, and we’d like both children to be centered vertically, so that there is an equal amount of space above the Label and below the ImageView. To accomplish this, select the VBox, then in the Inspector’s Properties section, set the Alignment property to CENTER. When you set the Alignment, notice the variety of potential alignment values you can use.
2. Specifying the VBox’s Preferred Size. The preferred size (width and ...
Read now
Unlock full access