Nativescript aligment/positioning question


#1

Hello eveyboody
I have a newbie question
If I have a layout like this

<StackLayout orientation="horizontal">
<Button text="Btn 1"></Button>
<Button text="Btn 2"></Button>
</StacklLayout>

My quesion is how can I push Button1 all the way to left side , and Button2 all the way to the right side
I tried with vertical aligment but its not working ???


#2

You need horizontalAlignment on button. Learn more about layouts at nslayout.