How to use the Android Design support library

Source: Internet
Author: User

Android Application design Support library full use instance-OPEN development experience Library
Http://www.open-open.com/lib/view/open1433385856119.html

Android MD Style related controls summary-Pinterest
Http://www.jianshu.com/p/5e6f2ae1d2ec

Referencing this library in Android Studio is as simple as adding this code to the Build.gradle file: Compile ' com.android.support:design:22.2.0

There are several controls in the Android Design support library

1,floating Action Button

A circular button that is responsible for displaying the basic operation of the interface. The Floatingactionbutton in the Design Library implements a hover action button with a default color of coloraccent in the theme,

2,textinputlayout

Textinputlayout as a parent container control, wrapping the new edittext. In general, a separate edittext will hide the hint prompt after the user enters the first letter, but now you can use Textinputlayout to encapsulate the edittext, prompting the message to become a edittext that appears on top of the floating Label so that users will always know what they are typing now.

3,snackbar

Snackbar provides a lightweight control between toast and Alertdialog, which makes it easy to provide prompt and action feedback for messages.

4,tablayout

tab swipe to switch view is not a new concept, Google is the first time in the support library to provide the full supporting, and the design library tablayout not only achieve a fixed tab-view width of the average distribution, A scrollable tab is also implemented

5,navigationview

Navigationview is very important in MD design, Google provides navigationview to implement the navigation menu interface

6,appbarlayout

Equivalent to the previous actionbar, but with higher degrees of freedom

7,coordinatorlayout

This new add-on is an enhanced framelayout. In Coordinatorlayout, many new operations can be done on the basis of framelayout.

8,collapsingtoolbarlayout

Provides a collapsible toolbar, which is also an effect in Google +, photos. Google has made it a standard control that makes it easier for everyone to use.

How to use the Android Design support library

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.