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


Table of Contents



The SetScreenMode method sets the screen mode. It could be full screen mode “Full” or normal screen mode “Normal” or “Default”.

 app.SetScreenMode( mode );


//Called when application is started.
function OnStart()
	//Create a layout with objects vertically centered.
	lay = app.CreateLayout( "Linear", "Vertical,VCenter,FillXY" );	
	btnFull = app.CreateButton( "Set full screen", 0.5, 0.1 );
	btnFull.SetMargins( 0, 0.05, 0, 0.05 );
	lay.AddChild( btnFull );
	btnNormal = app.CreateButton( "Set normal screen", 0.5, 0.1 );
	btnNormal.SetMargins( 0, 0.05, 0, 0.05 );
	lay.AddChild( btnNormal );
	//Set function to call when button pressed.
	btnFull.SetOnTouch( btn_OnFullTouch );
	btnNormal.SetOnTouch( btn_OnNormalTouch );
	//Add layout to app.	
	app.AddLayout( lay );     
function btn_OnFullTouch()
    app.SetScreenMode( "Full" );
function btn_OnNormalTouch()
    app.SetScreenMode( "Normal" );
built_in/set_screen_mode.txt · Last modified: 2016/09/02 15:18 (external edit)