User Tools

Site Tools


Privacy Policy


Version 2.50 is out since Jan 1st 2022

Frequently Asked Questions


Note for contributors

If you wish to create a new page in the DroidScript wiki, please click on the most appropriate namespace above and follow the notes for contributors there.

Because of spam, it has been necessary to add a CAPTCHA to the registration form and the save option for editing pages. You will not need to prove you are human if you are logged in, so please register.

Please feel free to improve any existing page, as well as adding new pages to increase the sum of public knowledge about DroidScript.

Formatting Syntax



Use the AddDrawer method to add a layout as drawer to the App. They can be located on the left or right side in your app and can be shown when sliding the finger from the border to the middle of the screen.

Note: Drawer layouts are equal to normal layouts - they are just added to the app via addDrawer() instead of addLayout()

app.AddDrawer( layout, side, width );

See also Layouts


function OnStart()
  lay = app.CreateLayout( "Linear", "FillXY,VCenter" );
  txt1 = app.CreateText( "<-- swipe" );
  txt1.SetTextSize( 30 );
  lay.AddChild( txt1 );
  app.AddLayout( lay );
  layDrawer = app.CreateLayout( "Linear", "VCenter" );
  layDrawer.SetBackground( "/Sys/Img/BlueBack.png" );
  txt2 = app.CreateText( "Hello" );
  txt2.SetTextSize( 40 );
  layDrawer.AddChild( txt2 );
  app.AddDrawer( layDrawer, "left", 0.8 );
built_in/add_drawer.txt · Last modified: 2018/05/21 07:41 (external edit)