--- nav-title: "stack-layout How-To" title: "stack-layout" description: "Examples for using stack-layout" --- ### import StackLayout and Button classes var StackLayout = require("ui/layouts/stack-layout").StackLayout; var Button = require("ui/button").Button; ### Create StackLayout ### Declaring a StackLayout. ``` XML ``` ### Add child view to layout ### Remove child view from layout ### Change layout orientation to Horizontal