This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
getting_started:start [2018/12/30 01:57] 114.125.57.28 [Note for contributors] |
getting_started:start [2021/05/11 13:20] al4he6 New page Android IDE How to |
||
---|---|---|---|
Line 11: | Line 11: | ||
**[[getting_started: | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
**[[getting_started: | **[[getting_started: | ||
+ | |||
+ | **[[getting_started: | ||
Line 18: | Line 24: | ||
---- | ---- | ||
- | // Load the MicroBit plugin. | + | ====Note for contributors==== |
- | app.LoadPlugin( " | + | If you wish to create a new page in the **Getting Started** namespace, please create a link to the new page above, save this page and click on the link you just created. |
- | + | ||
- | // Called when application is started. | + | |
- | function OnStart() | + | |
- | { | + | |
- | // Lock screen orientation to Portrait. | + | |
- | app.SetOrientation( " | + | |
- | + | ||
- | // Create our main layout. | + | |
- | lay = app.CreateLayout( " | + | |
- | lay.SetBackColor( "# | + | |
- | + | ||
- | // Create the Microbit plugin. | + | |
- | microbit | + | |
- | + | ||
- | // Creates micro:bit board image with 90% of layout width | + | |
- | img = app.CreateImage( microbit.GetImage(), | + | |
- | | + | |
- | + | ||
- | //Add main layout | + | |
- | app.AddLayout( lay ); | + | |
- | } | + |