NativeScript StackLayout with gap between child elements -


i'm using nativescript stacklayout component layout elements.

what best approach create gap between child elements of stacklayout?

you can use margin in css layout.

in xml:

  <stacklayout>       <label text="hey there,"></label>       <label text="world!"></label>   </stacklayout> 

in css:

stacklayout label {   margin: 10; } 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -