This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
getting_started:android_ide_how_to [2021/05/11 14:07] al4he6 |
getting_started:android_ide_how_to [2021/09/23 15:10] al4he6 |
||
---|---|---|---|
Line 29: | Line 29: | ||
The Rocket icon (top-right) gives access to Samples and Store.\\ | The Rocket icon (top-right) gives access to Samples and Store.\\ | ||
Samples and Store (and Examples in the Reference) allow code to be copied and/or run.\\ | Samples and Store (and Examples in the Reference) allow code to be copied and/or run.\\ | ||
+ | \\ | ||
+ | **Editing your code**\\ | ||
+ | See above for description of the top row of icons.\\ | ||
+ | Touch within the code window to bring up the YoYo cursor and on-screen keyboard.\\ | ||
+ | You can simply type code in (the Smart Editor can display suggestions and auto-complete).\\ | ||
+ | Double touch the YoYo to bring up the ToolBox which has icons for\\ | ||
+ | Select (to select part of your code - red arrow 14), Select All (15), Copy (16), Cut (17), Paste (18), and Beautify (19). | ||
+ | Double touch the YoYo to hide the Toolbox.\\ | ||
+ | You can touch within your code to move the YoYo cursor, or touch and drag the YoYo.\\ | ||
+ | {{: | ||
+ | \\ | ||
+ | **Search and Replace**\\ | ||
+ | Touch the magnifying glass icon on the grey bar to search/ | ||
+ | Touch the Search For box and type in text to find, then the down-arrow to search forwards.\\ | ||
+ | To search backwards use the up-arrow icon.\\ | ||
+ | You can touch the Replace With box and type in replacement text, then touch the double arrow icon to replace once, or the asterisk to replace all.\\ | ||
+ | {{: | ||
+ | \\ | ||
+ | **Undo/ | ||
+ | The bottom row of icons (on a black background) includes\\ | ||
+ | Undo (on the left) and Redo (on the right).\\ | ||
+ | Also toward the right are Run and Debug (mentioned earlier).\\ | ||
+ | \\ | ||
+ | **Files**\\ | ||
+ | Second from the left near the bottom is the File icon. Touch it to add a file to the App.\\ | ||
+ | Type in a filename, and choose Script/ | ||
+ | To switch which file you are editing touch the file name at the top of the screen.\\ | ||
+ | non-Premium members are restricted to 3 files per project.\\ | ||
+ | To use additional javascript files then your main file should include app.Script(“filename.js”).\\ | ||
+ | \\ | ||
+ | **Assets**\\ | ||
+ | To view assets and add assets (Images, etc) to your app, touch the 3rd icon form the left on the bottom bar.\\ | ||
+ | Touch the + icon to add Assets.\\ | ||
+ | \\ | ||
+ | **Toolboxes**\\ | ||
+ | If the YoYo toolbox is closed then you will see an icon with 3 horizontal lines on the right of the grey bar.\\ | ||
+ | Touch that icon to see the javascript/ | ||
+ | Touch the right-arrow icon on the right of the grey bar to close the javascript/ | ||
+ | If the YoYo and javaascript/ | ||
+ | If your cursor is pointing at an object or method name then the grey bar will show the parameters. | ||
+ | Touching in the grey bar will show the reference page for the object/ | ||
+ | \\ | ||
+ | **YouTube** | ||
+ | You may find it useful to also look at this demo on YouTube https:// | ||
+ | \\ | ||
+ | **Finding it difficult to cut and paste?**\\ | ||
+ | In the editor I : | ||
+ | |||
+ | 1) open the settings menu using the button with 3 vertical dots | ||
+ | |||
+ | 2) select the largest fontsize available and press Ok | ||
+ | |||
+ | 3) double-tap the screen at the start of the cut | ||
+ | |||
+ | 4) drag the yoyo to the end of the cut to highlight it | ||
+ | |||
+ | 5) double-tap the yoyo to see the cut and paste menu | ||
+ | |||
+ | 6) tap the scissors to cut the code | ||
+ | |||
+ | 7 move the cursor to the start of the destination | ||
+ | |||
+ | 8) double-tap the yoyo and paste | ||
+ | |||
+ | 9) If you have finished, go back to the settings menu and choose your normal font-size | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||