How to develop an Android Things app UI

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:

  1. Create an XML file that holds the interface description:
    1. Define the layout.
    2. Add the widgets to the layout.
  2. Attach the interface to the Activity that will handle it.
  3. 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 ...

Get Android Things Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.