mit-app-inventor

Reorient

About this app

The Reorient app demonstrates the delay between changing the Screen1 orientation and the Screen1 dimensions actually changing.

The Reorient app reorients arrangements of multiple buttons to be on top of one another in portrait orientation and side by side in landscape orientation.

MIT App Inventor requires a 250ms delay before reading Screen1.Width and Screen1.Height — hence the ClockDelay component.

Incidentally, The Reorient app has two buttons that play a cat sound and a dog sound with a single Player.

Code

ImageSize blocks

Credits

The cat and dog sounds were downloaded from Orange Free Sounds (https://orangefreesounds.com/).

Designer

All components retain their default properties, — except Width and Height set to Fill parent... where necessary to center UX components and Button text(s) changed from their defaults(s).


🔗 permalink, 🔩 repository, and MIT AI2 logo .AIA for this page.