Book Image

Learning Material Design

By : Kyle Mew
Book Image

Learning Material Design

By: Kyle Mew

Overview of this book

Google's Material Design language has taken the web development and design worlds by storm. Now available on many more platforms than Android, Material Design uses color, light, and movements to not only generate beautiful interfaces, but to provide intuitive navigation for the user. Learning Material Design will teach you the fundamental theories of Material Design using code samples to put these theories into practice. Focusing primarily on Android Studio, you’ll create mobile interfaces using the most widely used and powerful material components, such as sliding drawers and floating action buttons. Each section will introduce the relevant Java classes and APIs required to implement these components. With the rules regarding structure, layout, iconography, and typography covered, we then move into animation and transition, possibly Material Design's most powerful concept, allowing complex hierarchies to be displayed simply and stylishly. With all the basic technologies and concepts mastered, the book concludes by showing you how these skills can be applied to other platforms, in particular web apps, using the powerful Polymer library.
Table of Contents (17 chapters)

App bar style and code

This first part of the chapter returns to the app bar, this time looking more closely at the rules and choices as applied to app bar structures and icons. We begin by further examining the ways we can and should customize material themes.

Applying a material palette

Earlier, we touched upon the material theme and how it is possible to customize it and apply our own color scheme. It is perfectly possible to apply any set of colors but Google is quite insistent on how this should be done.

The emphasis with Material Design is on simplicity and using a large number of colors is not recommended. We need just two or three primary shades and one accent shade. Ideally, our palettes should be selected from those found at:

Select two of these swatches. One will be used for your primary colors, which will be applied to toolbars and status bars, and the other for the accent color, which will appear in action buttons...