tdc 2014 - trilha mobile - material design

80
Material Design How get started?

Upload: jackson-f-de-a-mafra

Post on 21-Apr-2017

871 views

Category:

Devices & Hardware


0 download

TRANSCRIPT

Page 1: TDC 2014 - Trilha Mobile - Material design

Material DesignHow get started?

Page 2: TDC 2014 - Trilha Mobile - Material design

Jacksonfdamhttp://about.me/jacksonfdam

https://bitbucket.org/jacksonfdam

https://github.com/jacksonfdam

http://linkedin.com/in/jacksonfdam

@jacksonfdam

Page 3: TDC 2014 - Trilha Mobile - Material design

Agenda● Material Design● Material theme● Styles● Layouts● Elevation● Widgets● Animations

Page 4: TDC 2014 - Trilha Mobile - Material design

Material Design

Page 5: TDC 2014 - Trilha Mobile - Material design

A brief history of AndroidFrom a design perspective

Page 6: TDC 2014 - Trilha Mobile - Material design

Oct. 22, 2008T-Mobile G1 is launched

Page 7: TDC 2014 - Trilha Mobile - Material design

Sep. 15, 2009Density Independent pixels introduced in Donut

Page 8: TDC 2014 - Trilha Mobile - Material design

Oct. 26, 2009The Droids arrive

Page 9: TDC 2014 - Trilha Mobile - Material design

Dec. 6, 2010Google acquires Matias Duarte

Page 10: TDC 2014 - Trilha Mobile - Material design

Feb. 22, 2011Honeycomb showed us a glimpse of what Android would soon look like

Page 11: TDC 2014 - Trilha Mobile - Material design

Oct. 8, 2011#YOLOHOLO

Page 12: TDC 2014 - Trilha Mobile - Material design

July 9, 2012Jelly Bean brings actions to notifications, Google Now

Page 13: TDC 2014 - Trilha Mobile - Material design

Oct. 31, 2013Losing the fat

Page 14: TDC 2014 - Trilha Mobile - Material design

June 25, 2014Android L Preview

Page 15: TDC 2014 - Trilha Mobile - Material design

Material Theme

The material theme provides a new style for our app, system widgets that let us set their color

palette, and default animations for touch feedback and activity transitions.

Page 16: TDC 2014 - Trilha Mobile - Material design

Material Design

● Universal platform design that functions across Android Wear, Android TV, Android Auto, and all of Google’s apps and services

● Making the whole device feel unified ● Its all about everything animation, but flat at the same

time ● Elevation value to any UI surface to get 3D effects by

virtual light sources and real time shadows

Page 17: TDC 2014 - Trilha Mobile - Material design

Material Theme

● Material Design ● Android RunTime (ART) ● Battery life (Project Volta) ● Security ● Multitasking and Recent App ● Notifications ● Many more...

Page 18: TDC 2014 - Trilha Mobile - Material design

New WidgetsThe Android L Developer Preview includes two new widgets for displaying complex views: ● The new RecyclerView widget is a More

advanced version of ListView. ● The new CardView widget lets us Important

pieces of information inside Cards that have a consistent look and Feel.

Page 19: TDC 2014 - Trilha Mobile - Material design

View ShadowsIn addition to the X and Y properties, views in the Android L Developer have a Z property. This new property represents the elevation of a view, which determines: ● The size of the shadow - Views with higher Z

values cast bigger shadows. ● The drawing order - Views with higher Z values

appear on top of other views.

Page 20: TDC 2014 - Trilha Mobile - Material design

Animations● The Android L Developer provides new APIs

that let us to create custom animations for touch feedback in UI controls, view state changes, and activity transitions.

● Touch feedback animations are built into several standard views such as buttons.

● The new APIs let us customize these animations and add animations to our custom views

Page 21: TDC 2014 - Trilha Mobile - Material design

AnimationsThe new animation APIs let us: ● Respond to touch events in our views with touch

feedback animations. ● Hide and show views with reveal effect animations. ● Switch between activities with custom activity transition

animations. ● Create more natural animations with curved motion. ● Show animations in state list drawables between view

state changes.

Page 22: TDC 2014 - Trilha Mobile - Material design

Principles of Material● Design Material is the metaphor : A material

metaphor is the unifying theory of a rationalized space and a system of motion.

● Bold, graphic, intentional : These elements do far more than please the eye; they create hierarchy, meaning, and focus.

● Motion provides meaning : Motion is meaningful and appropriate, serving to focus attention and maintain continuity.

Page 23: TDC 2014 - Trilha Mobile - Material design

Animation has four contents● Authentic Motion● Responsive Interaction● Meaningful Transitions● Delightful Details

Page 24: TDC 2014 - Trilha Mobile - Material design

Animation● Authentic Motion

Perceiving an object's tangible form helps us understand how to manipulate it. Observing an object's motion tells us whether it is light or heavy, flexible or rigid, small or large.

● Contents Mass and Weight: Physical objects have mass and move only when forces are applied to them.Objects can’t start or stop instantaneously.

Page 25: TDC 2014 - Trilha Mobile - Material design

Animation● Responsive Interaction

Responsive interaction builds trust with the user and engages them. It is thoughtful and purposeful, not random, and can be gently whimsical but never distracting.

In material design, apps are responsive to and eager for user input:

● Touch, voice, mouse and keyboard are all first-class input methods ● Although UI elements appear tangible, they are locked behind a layer

of glass

Page 26: TDC 2014 - Trilha Mobile - Material design

Animation(Responsive Interaction)Surface Reaction One way to express this acknowledgment is through the ink metaphor, the dynamic display surface that coats every sheet of paper.

Page 27: TDC 2014 - Trilha Mobile - Material design

Animation(Responsive Interaction)● Material Response ● In addition to ink-like actions on the surface, the material itself

can also respond to interaction. ● The material can lift up when touched or clicked, indicating an

active state. ● Material appears from touch point. ● Paper appears from center of screen, breaking relationship with

input.

Page 28: TDC 2014 - Trilha Mobile - Material design

Animation(Responsive Interaction)Meaningful Transitions ● It can sometimes be difficult for a user to know where to focus

their attention in an app or how an app element got from point A to point B.

● Motion design should not only be beautiful, but serve a functional purpose.

Page 29: TDC 2014 - Trilha Mobile - Material design

ExamplesVisual Continuity ● Transitioning between two visual states should be smooth,

appear effortless, and above all, provide clarity to the user, not confusion.

A transition has three categories of elements: ● Incoming elements ● Outgoing elements ● Shared elements

Page 30: TDC 2014 - Trilha Mobile - Material design

Animation(Meaningful Transitions)Hierarchical Timing ● When building a transition, consider both the order in which

elements move and the timing of their movement. ● It Ensure that motion supports the information hierarchy.

Page 31: TDC 2014 - Trilha Mobile - Material design

Animation(Meaningful Transitions)Consistent Choreography ● As transitioning elements move around the screen. ● They should behave in a coordinated manner.

Page 32: TDC 2014 - Trilha Mobile - Material design

Animation(Meaningful Transitions)Delightful Details ● Animation can exist within all components of an app and at all

scales, from finely detailed icons to key transitions and actions. ● All elements work together to construct a seamless experience

and a beautiful, functional app.

Page 33: TDC 2014 - Trilha Mobile - Material design

What were the goals?

Page 34: TDC 2014 - Trilha Mobile - Material design

…synthesize the classic principles of good design with the innovation and possibility of technology and science…

Page 35: TDC 2014 - Trilha Mobile - Material design

…single underlying system that allows for a unified experience across all platforms…

Page 36: TDC 2014 - Trilha Mobile - Material design

…touch, voice, mouse and keyboard are all first-class input methods…

Page 37: TDC 2014 - Trilha Mobile - Material design

Material Design

Material design is a comprehensive guide for visual, motion, and interaction design across

platforms and devices.

Page 38: TDC 2014 - Trilha Mobile - Material design

Material Design

What if we could design for materials of the future instead of

materials that we use today? - Matias Duarte”

Page 39: TDC 2014 - Trilha Mobile - Material design

Material Design

The Android L Developer Preview provided the following elements for you to build material design apps

● A new theme● New Widgets for complex views● New APIs for custom shadows and animations

Page 40: TDC 2014 - Trilha Mobile - Material design

Material Design

What is Android L? - Unnamed version of Android with code named L - Comes packed with over 5000 new developer APIs - New universal design and functionality language - User friendly and attractive navigation concepts - Improved Battery life and Processing

Page 41: TDC 2014 - Trilha Mobile - Material design

Material Design

What is Android L? - Unnamed version of Android with code named L - Comes packed with over 5000 new developer APIs - New universal design and functionality language - User friendly and attractive navigation concepts - Improved Battery life and Processing

Page 42: TDC 2014 - Trilha Mobile - Material design

Material Design

What is Android L? Android 5.0 SDK and new Lollipop preview images coming October 17

Page 43: TDC 2014 - Trilha Mobile - Material design

Material Design

http://www.google.com/nexus/6/

Page 44: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Visual language for our users that synthesizes the classic principles of good design with the innovation of technology.

This is material design.

Page 45: TDC 2014 - Trilha Mobile - Material design

Goals

Page 46: TDC 2014 - Trilha Mobile - Material design

Material is metaphor

Principles

Graphic Motion provides meaning

Page 47: TDC 2014 - Trilha Mobile - Material design

Motion animation

Page 48: TDC 2014 - Trilha Mobile - Material design

Responsive Interaction

Page 49: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Meaningful Transitions

Page 50: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Delightful Details

Page 51: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Style

Page 52: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Color Pallete

Page 53: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

UI Color Application

Page 54: TDC 2014 - Trilha Mobile - Material design

Typeface Roboto

Page 55: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

How to use font

Page 56: TDC 2014 - Trilha Mobile - Material design

Flat design for icons

Page 57: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Use more place for image

Page 58: TDC 2014 - Trilha Mobile - Material design

More real things in material design

Page 59: TDC 2014 - Trilha Mobile - Material design

Focus on main

Page 60: TDC 2014 - Trilha Mobile - Material design

No effects for photo

Page 61: TDC 2014 - Trilha Mobile - Material design

Scale layouts for all devices

Page 62: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Metrics

Page 63: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Flat and real dynamic design

Page 64: TDC 2014 - Trilha Mobile - Material design

Material in android

Page 65: TDC 2014 - Trilha Mobile - Material design

Apply the Material Theme

Page 66: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Customize color in theme

Page 67: TDC 2014 - Trilha Mobile - Material design

• The material theme is only available in the Android L Developer Preview.

Compatibility

• android.support.v7.widget.RecyclerView

• android.support.v7.widget.CardView

Page 68: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

RecyclerView

Page 69: TDC 2014 - Trilha Mobile - Material design

• ViewHolder by default

• Layout manager

• ItemAnimator

RecyclerView

Page 70: TDC 2014 - Trilha Mobile - Material design

RecyclerView example

Page 71: TDC 2014 - Trilha Mobile - Material design

USEFUL LinksShadows

CardView

Rounded corners

Box for content

Page 72: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Pallete

Bitmap

Vibrant color (Normal, Light, Dark)

Muted color (Normal, Light, Dark)

Page 73: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Shadows

Page 74: TDC 2014 - Trilha Mobile - Material design

USEFUL Links

Shadow evaluation

Page 75: TDC 2014 - Trilha Mobile - Material design

• Touch feedback

Animations

• Reveal effect

• Curved motion• Activity transitions• View state changes

Page 76: TDC 2014 - Trilha Mobile - Material design

• RippleDrawable class

Touch feedback

• ?android:attr/selectableItemBackground

• android:colorControlHighlight

Page 77: TDC 2014 - Trilha Mobile - Material design

Touch feedback

Page 78: TDC 2014 - Trilha Mobile - Material design

Activity transitions

Page 79: TDC 2014 - Trilha Mobile - Material design

Material design from Google http://www.google.com/design/spec/material-design

Useful links

Material design for androidhttp://developer.android.com/preview/material/index.html

Angular material designhttps://material.angularjs.org/#/

Apps with material designhttp://www.androidauthority.com/best-material-design-apps-for-android-523420/

Page 80: TDC 2014 - Trilha Mobile - Material design

Thank you.@jacksonfdam