+ All Categories
Home > Education > Material design - widgets and sample code

Material design - widgets and sample code

Date post: 11-Aug-2015
Category:
Upload: xavier-yin-
View: 144 times
Download: 2 times
Share this document with a friend
Popular Tags:
12
Xavier Yin 2015/04/28 Material Design Widgets and Sample code
Transcript
Page 1: Material design - widgets and sample code

Xavier Yin

2015/04/28

Material DesignWidgets and Sample code

Page 2: Material design - widgets and sample code

Outline

Getting Started

Material Theme

Tool Bar

RecyclerView and CardView

References

Page 3: Material design - widgets and sample code

Getting Started

To create apps with material design:– Review the material design specification.

– Apply the material theme to your app.

– Create your layouts following material design guidelines.

– Specify the elevation of your views to cast shadows.

– Use system widgets for lists and cards.

– Customize the animations in your app.

Page 4: Material design - widgets and sample code

App/build.gradle settings

Page 5: Material design - widgets and sample code

Material Theme

Page 6: Material design - widgets and sample code

Tool Bar and Drawer

Tool Bar– A Toolbar is a generalization of action bars for use within

application layouts.– An application may choose to designate a Toolbar as the action

bar for an Activity using the setActionBar() method.– Toolbar supports a more focused feature set than ActionBar.

A navigation button.  A branded logo image.  A title and subtitle.  One or more custom views. An action menu.

Page 7: Material design - widgets and sample code

Tool Bar and Drawer

Tool Bar– Toolbar supports a more focused

feature set than ActionBar. A navigation button.  A branded logo image.  A title and subtitle.  One or more custom views. An action menu.

Page 8: Material design - widgets and sample code

Tool Bar and Drawer

Page 9: Material design - widgets and sample code

Creating Lists and Cards

RecyclerView widget – a more advanced and flexible version of ListView– for displaying large data sets

The RecyclerView class simplifies the display and handling of large data sets by providing:– Layout managers for positioning items– Default animations for common item operations, such as removal

or addition of items

Page 10: Material design - widgets and sample code

Creating Lists and Cards

Page 11: Material design - widgets and sample code

Creating Lists and Cards

CardView – show information inside cards

that have a consistent look across the platform.

– have shadows and rounded corners

Page 12: Material design - widgets and sample code

References & Sample Code

Reference - Google– http://

www.google.com/design/spec/material-design/introduction.html

PPT & Sample Code– https://www.slideshare.net/secret/F6B0NsI9WpX5aI– https://github.com/xavier0507/MaterialDesignBasicWidgets.git


Recommended