2016년 12월 7일 수요일

How do I change the landing page when I boot up the app?


I would like to know, do you guys know how I could change the landing page (the page that comes when I boot up the app)?

-- 
Screen1 is always the landing page. You could view my post HERE to see how to shuffle screens.


This video shows you how to manipulate App Inventor screens. It shows you how to:
1. HowTo copy screens: e.g. Copy Screen1 to AuthorsScreen
2. HowTo rename screens. e.g. rename AuthorsScreen to CatalogScreen
3. HowTo change order of screens; e.g. make CatalogScreen to be the start-up (initial screen)
a) Follow Step2 above to rename Screen1 to ScreenX
b) Follow Step2 above to rename CatalogScreen to Screen1
c) Follow Step2 above to rename ScreenX to NewScreenName



-- 
How to copy screens by Scott and a video by Hossein

--Ai2 File Assistant - Copy and Rename Screens--

 Copy_Screen.jpg
 Rename_screen.jpg
 Reorder_screen.jpg
 About_screen.jpg

https://github.com/saturnknts/MIT-App-Inventor-file-assistant
Written in AutoIt language and the source is available as well.  

-- AI2: copy screens using Windows Explorer--

This technique of copying screens in an AI2 project uses Windows Explorer to add new screens to an AI2 project. 

When copying screens manually, be careful not to use keywords such as 'Button' for your new screen names as 'button' is one of the words used in component definitions in the screen files. Manually copying a screen named 'Button' will cause any button definitions to be corrupted by replacing 'button' with the new screen name and the new screen will not work. I add an SCR suffix to my screen names to insure that this does not happen. Alternatively you could make sure that you avoid those keywords.

Also, when copying screens from one project to another, be sure to also copy any assets needed by those screens from the source project to the destination project.

Screen CanvasSCR will be copied and named ClockSCR. I captured the screens for each step of the process below: 

Export your project to a folder on your computer.
Then place a copy of it with the original name in another folder for adding the new screen to.

Replace the aia extension on the copy's project name with a zip extension:

Open the project with Windows Explorer:
Navigate to the folder containing the screen files:
Drag the files with the screen name to be copied out of the archive:
-
Edit each file:
Replace all instances of the old screen name with the new screen name:
...then save each file.
Rename the Screen files to the new screen name:
Drag a copy of the the renamed screens to the archive:
Change the project extension back to aia:

When you import the project into AI2 it will contain the new screen. If you have an <old screen name>.Initialize block in the original screen it will now be named <new screen name>.Initialize in the copied screen.
-- 

댓글 없음:

댓글 쓰기