AddLayout adds a layout to the screen so that it is visible (if not hidden with SetVisibility)
When CreateLayout arguments are passed it will create the layout just like app.CreateLayout and also add it.
Example - Vertical
function OnStart()
{
lay = app.CreateLayout( "Linear", "FillXY,VCenter" );
txt = app.CreateText( "Hello" );
txt.SetTextSize( 50 );
lay.AddChild( txt );
app.AddLayout( lay );
}
from native import app
def OnStart():
lay = app.CreateLayout( "Linear", "FillXY,VCenter" )
txt = app.CreateText( "Hello" )
txt.SetTextSize( 50 )
lay.AddChild( txt )
app.AddLayout( lay )