Android (Lollipop/5.0) Material Design (2) Getting Started Guide

Source: Internet
Author: User

Android (Lollipop/5.0) Material Design (2) Getting Started Guide

 

 

Apply the Material Theme
 
 
 
 
 

 

 

Design Your Layouts Design Your layout

 

In addition to the application and custom material themes, your layout should comply with the material design guidelines. When designing your layout, pay special attention to the following:

Baseline Mesh

Keylines

Spacing

Touch target size

Layout Structure

 

Specify Elevation in Your Views elevation attribute specified in View

 

The shadow that a View can cast. The elevation value of a View determines the shadow size and draw sequence. You can set the elevation of a view and use the attribute android: elevation in the layout.

 

 
 
 
 

The new translationz attribute allows you to create an animation that reflects temporary elevation changes. Elevation changes may be useful when responding to touch gestures.

 

Customize Your Animations Custom Animation

 

You can customize the animation, such as activating the Activity transition animation and ending the transition animation.

 

 

 
 
 
When you start other activities in this Activity, exit transition will be activated. 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.