Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
React Components

You're reading from   React Components Explore the power of React components for cutting-edge web development

Arrow left icon
Product type Paperback
Published in Apr 2016
Publisher
ISBN-13 9781785889288
Length 182 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Christopher Pitt Christopher Pitt
Author Profile Icon Christopher Pitt
Christopher Pitt
Arrow right icon
View More author details
Toc

Table of Contents (12) Chapters Close

Surfaces

Each object is represented by a material surface. These objects are sized in device-independent pixels (or dp, for short). This is a great unit to measure user input because it allows designers to design interfaces independent of the screen size.

It can also be converted to absolute units (such as inches or millimeters) depending on the device's screen size.

Note

You can learn more about dp at http://en.wikipedia.org/wiki/Device_independent_pixel.

Surfaces are thought of as 3D objects, having width, height, and depth. All surfaces have a depth of 1 dp, but they can have any width or height. Surfaces also overlap, so they have a vertical offset from each other.

This vertical offset (or elevation) allows layering, creating a sense of depth similar to the real world. The content on a surface, such as typography and images, lies flat on the surface. Think of it like ink on paper, where the paper has a depth that's easier to notice than the ink printed on it.

This layering effect...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime