When it comes the time to develop our first Android Things UI we have to keep in mind that Android Things is a modified version of Android OS. Therefore, we can apply our Android expertise to build the UI. Just to recap briefly, the main steps to follow when developing a user interface are:
- Create an XML file that holds the interface description:
- Define the layout.
- Add the widgets to the layout.
- Attach the interface to the Activity that will handle it.
- Handle the widget events triggered when the user interacts with them.
Before digging into the code details about the user interface, it is useful to have an idea of how the interface should look. The interface is quite simple and there are:
- Three ...