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)

Desktop layouts


The enormous variety of layouts employed on the Web makes for an interesting set of challenges. A typical desktop layout for a web page has many of the features similar to those of the layouts we've covered so far, such as an app bar and side navigation drawers. Following is one such example:

The preceding example has a primary toolbar (known as a navigation bar on desktop apps) just as its mobile counterparts do. On a desktop, this component should always be present and is 64 dp high unless it is expanded, in which case, it should be 128 dp. The navigation drawers can, and often do, have secondary toolbars of their own, as can the main content canvas as well.

Desktop navigation drawers can be fixed or opened from the navigation bar's icons. The bar has a 20 dp padding at the top and bottom, one padding of 24 dp to the right and left, and the title text is indented 80 dp from the left-hand side edge. The maximum width for the left navigation drawer is 400 dp. The right-hand...