Simplifying Management of Multiple Vertical Arrangements

Hello,

I'm developing an app in MIT App Inventor where I use multiple Vertical Arrangements to display different content. Each time I want to show a new Vertical Arrangement, I have to do the following:

  1. Set the "Visible" property to "false" for the existing Vertical Arrangements.
  2. Set the "Visible" property to "true" for the new Vertical Arrangement.

This process is repetitive and time-consuming, especially when I need to frequently change the displayed Vertical Arrangement.

Is there a way to automate this process? Perhaps a block or technique that allows me to change the displayed Vertical Arrangement with a single step?

Thank you very much for your help!

If you are dealing with multiple arrangements then try with procedure and call this procedure whenever it is required

And what should I put inside?

If VA1 is visible what arrangments visibility should go false, and vice versa

Or

Make all arrangements in a global variable as a list.

And in procedure try this

For each item in the list get global list
Set vertical arrangement visibility to false

Oit of this event add one more set veritical or horizontal visibility to get drawer icon to true

Call this procedure and in the drawer icon add the vertical or horizontal arrangement

I mean the particular arrangement to go visible to true

Sample procedure for VA

Screenshot_2025-03-23-20-31-49-97_40deb401b9ffe8e1df2f1cc5ba480b12

You can either customize it further or can add HA too

1 Like

It worked! Thank you very much!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.