Applying material to older devices

The support repository we downloaded in the last chapter provides code that allows us to apply our designs on handsets going all the way back to Android 1.8, although the further back you go, the fewer features are supported. For the purpose of this book, we will make our applications backwards compatible as far back as API 16.

To achieve this, we will be using code provided by the AppCompat support library; in doing so, we will encounter one of the most significant material components: the Toolbar, which replaced the previous, less flexible Action Bar.

In older versions of Android, unless switched off, the Action Bar would sit at the top of each app and could contain our title along with any of the option menu ...

Get Learning Material Design 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.