Slide 1

Slide 1 text

Material Design for Developers By Li Jia Li

Slide 2

Slide 2 text

Who am i ? ● My name is Li Jia Li ● Co-Founder / Web Architect of Hexcores ● A Web Developer who know a bit about design.

Slide 3

Slide 3 text

You don’t need to be a designer to make a beautiful app. You just need to know some tools to help you.

Slide 4

Slide 4 text

What is Material Design ?

Slide 5

Slide 5 text

No content

Slide 6

Slide 6 text

Material Design for Android http://developer.android.com/design/material/index.html

Slide 7

Slide 7 text

Material Theme @android:style/Theme.Material (dark version) @android:style/Theme.Material.Light (light version) @android:style/Theme.Material.Light.DarkActionBar

Slide 8

Slide 8 text

Material Theme Customize the color palette <!-- Main theme colors --> <!-- your app branding color for the app bar --> <item name="android:colorPrimary">@color/primary</item> <!-- darker variant for the status bar and contextual app bars --> <item name="android:colorPrimaryDark">@color/primary_dark</item> <!-- theme UI controls like checkboxes and text fields --> <item name="android:colorAccent">@color/accent</item>

Slide 9

Slide 9 text

https://www.materialpalette.com

Slide 10

Slide 10 text

Typography scale-independent pixel (sp) a unit of length for specifying the size of a font of type. Its length depends on the user’s preference for font size, set in the Settings app of the Android device. Tips ?android:textAppearanceSmall (14sp) ?android:textAppearanceMedium (18sp) ?android:textAppearanceLarge ( 22sp)

Slide 11

Slide 11 text

Typography (Color & Contrast) A text color that is too similar to the background color is hard to read. Text with too much contrast can also be hard to read. This is especially true of light-colored text against dark backgrounds.

Slide 12

Slide 12 text

More Typography guide at https://www.google.com/design/spec/style/typography.html

Slide 13

Slide 13 text

Drawable Resources What are these for ? drawable - for xml shapes drawable-hdpi - for 240 dpi devices drawable-mdpi - for 160 dpi devices drawable-nodpi - for images which shouldn’t scale based on density drawable-xhdpi - for 320 dpi devices drawable-xxhdpi - for 480 dpi devices drawable-xxxhdpi - for approximately 640 dpi devices For more : http://developer.android.com/guide/topics/resources/providing-resources.html Language based resources - drawable-mdpi-my

Slide 14

Slide 14 text

Material Icons https://www.google.com/design/icons/

Slide 15

Slide 15 text

Material Icon Generator for Android Studio https://github.com/konifar/android-material-design-icon-generator-plugin

Slide 16

Slide 16 text

Design Support Library http://developer.android.com/tools/support-library/index.html -> compatible with devices running Android 1.6 (API level 4) and up. ● Navigation View ● Floating labels for editing text ● Floating Action Button ● Snackbar ● Tabs ● CoordinatorLayout, motion, and scrolling ● CoordinatorLayout and floating action buttons ● CoordinatorLayout and the app bar ● Collapsing Toolbars ● CoordinatorLayout and custom views

Slide 17

Slide 17 text

Resources Material Design for Android Developers https://www.udacity.com/course/material-design-for-android-developers--ud862

Slide 18

Slide 18 text

Material Design is only for Android ?

Slide 19

Slide 19 text

No, it isn’t. You can implement it to any platform. Web, iOS, etc.

Slide 20

Slide 20 text

Material Design for Web

Slide 21

Slide 21 text

Polymer https://www.polymer-project.org/1.0/ ● Polymer is more than material design. ● The Polymer library is designed to make it easier and faster for developers to create great, reusable components for the modern web.

Slide 22

Slide 22 text

Polymer Elements https://elements.polymer-project.org/

Slide 23

Slide 23 text

Material Design Lite http://getmdl.io ● Material Design Lite lets you add a Material Design look and feel to your websites. ● doesn’t rely on any JavaScript frameworks and aims to optimize for cross-device use ● gracefully degrade in older browsers, and offer an experience that is immediately accessible.

Slide 24

Slide 24 text

Material Design Lite http://getmdl.io https://speakerdeck.com/addyosmani/material-design-for-the-web

Slide 25

Slide 25 text

Material Design Lite http://getmdl.io With Awesome example template

Slide 26

Slide 26 text

Material Design Lite http://getmdl.io

Slide 27

Slide 27 text

Other MD frameworks for your web projects ● MaterializeCSS (http://materializecss.com/) ● Material Design for Bootstrap (https://fezvrasta.github.io/bootstrap-material- design/) ● Angular Material (https://material.angularjs.org) And much more ….

Slide 28

Slide 28 text

Other Inspiration and resources

Slide 29

Slide 29 text

https://design.google.com/resources/

Slide 30

Slide 30 text

http://www.materialup.com/

Slide 31

Slide 31 text

Thanks