Skip to first unread message

Mike Ang

unread,
Feb 27, 2019, 7:50:44 PM2/27/19
to MIT App Inventor Forum
Hi All, am trying to find a solution below but not much result.
I had created and completed the Screen 1 .
Now i realize more screen like screen 2 & 3 & 4 is required, so i wanted to add a  initial screen where all screen 1,2 & 3 go to button can easily be contain.
so i was wondering how can i add a screen (before screen 1).
Thank you all for helping out. hope can get some advises soon.

Taifun

unread,
Feb 27, 2019, 9:29:34 PM2/27/19
to MIT App Inventor Forum

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Tony Richards

unread,
Feb 28, 2019, 5:10:41 AM2/28/19
to MIT App Inventor Forum
You don't need to make multiple screens, just create and overlap several different screen1
arrangements and play with their visibility property, as done in the attached project.
Hope this helps.
Tony
TabbedScreenblocks.png
TabbedScreens.aia

Tony Richards

unread,
Feb 28, 2019, 5:25:30 AM2/28/19
to MIT App Inventor Forum
P.S. For some reason the first block, which is executed on Screen1 initialization, refers to TabScreen1 four times,
when each successive SET block should refer to TabScreen1, then TabScreen2, then TabScreen3 and finally TabScreen4.
Sorry about that, dont know how that crept in.
Fortunately, each of the tabs is marked visible in the designer, so that is their initial state on Screen1 initialization anyway.

Ghica

unread,
Feb 28, 2019, 11:25:27 AM2/28/19
to MIT App Inventor Forum
Tony,
Your example could be a bit simpler, like this:

blocks(24).png

I left the Initialize block in, but you do not need it. 
In a real case you would have a procedure for initializing each "screen", for example initScreen3 and then you would call this procedure for both (for screen 3) tabScreen3 and btnScreen3.
You need to avoid duplication as much as possible. Now it is simple, but for a large app, you will have difficult bugs if you do not do that.
Cheers, Ghica.

TimAI2

unread,
Feb 28, 2019, 12:03:04 PM2/28/19
to MIT App Inventor Forum
Reply all
Reply to author
Forward
0 new messages