In the real world, “user interfaces” look like electric light switches, push buttons or control knobs, temperature dials on ovens, volume controls on radios and so forth. We can mimic these types of controls for our touch screen Android apps. We do not have to rely on the boring desktop-like clickable button or checkboxes in the App Inventor user interface palette.
A previous tutorial showed a trick to make the color of a button vary continuously. This tutorial shows how to use our own images, instead of the boring button, together with a bit of code to bring these buttons to life.
User Interface View
Below is a sample “toggle switch”. Press the switch icon once and the toggle moves to the right; press it again and the toggle moves back to the left.
Here is a slide switch. Press the slide switch once and the switch position moves to the right and the switch illuminates in green. Press the slide switch again and the switch returns to the left.
Here is a concept for a raised momentary push button. Pressing the button changes the appearance of the button while your finger is on the button – to look like the button is pressed in.
The server that hosts the appinventor.pevest.com virtual server suffered an outage late on January 17th, continuing into early January 18th. The Internet Service Provider that hosts the server has restored service. From their note to me, it seems there may have been a denial of service attack on their infrastructure.
I was in the midst of writing a new tutorial on creating “pretty user interface” components in App Inventor; that tutorial was lost in the outage. Not as bad as it sounds as the code and illustrations were all saved – I just need to rewrite the text.
The following chart comes from Google Trends, and reflects the growing interest in App Inventor, based on searches for “MIT App Inventor” on Google.
Because App Inventor has been viewed as a training tool in K-12 level schools, and some introductory college courses, searches for App Inventor information have gone down during the northern hemisphere summer months, when school is not normally in session. This accounts for the up and down movement in the trend line.
This chart shows a relative level of interest for the top countries searching for “MIT App Inventor”.