Embrace the new changes in the Android Design Support Library (Navigation view, hover Actionbar ... )

Source: Internet
Author: User
Tags ming

Reproduced please specify the Ming sang Android

Android 5.0 Loollipop as one of the most important versions of Android, brings us a whole new interface style and design language. Seems very popular, but its popularity seems not so smooth, just a few days ago, Google I/O 2015 has launched a new Android M preview version. Even so, the native version of Android doesn't seem to have been getting the results Google expected ... In any case, as a developer, we are concerned about whether the platform is good or not, and whether it can open up a sophisticated and interesting application. Fortunately Material Design I think it is successful, the official added in in the Android Support Library 22.2.0 Design Support Library lower version to support Material Design .

The article is mainly divided into the following parts:

1. Download and addDesign Support Library

2. Introduction Deign Support Library of new controls introduced, new view

The expected article can be written in more detail, so it is divided into several to write, this as a primer, to understand the new design style of the control view and other basic elements, in the following article describes the specific use of each control.

1. Download Android support Library

First of all , to tell the truth about Android most headache is not on the official website, a lot of beginners have just started even new version of, have to sdk Android Studio go around a big circle, learn to know the back point of new information or technology can not be in the first time to obtain ... As for the wall, not the focus of our discussion, I want to say is if you have the ability to set 自己搭把梯子 up, if you need to pay, there are many cheap and cost-effective VPN (10-20¥/months), I hope you can invest a bit of money for yourself, than the QQ drill should be worth more. Life outside the wall is also the "bizarre", I hope you can have a Programmer's Reserve, why so, you see what the so-called "ideology" outside the wall is how to talk about Chinese politics on the meaning of the wall exists! —-

Cough, say so much, is nothing more than hope to get on the official website, usually encountered problems to look at the government documents, developers blog, many technical blogs outside the wall is worth reading, these to their own progress to help a lot.

Download/update Android support Library

These are the basic basics of the old routine, as in the case of Android studio, we need to download/update via SDK ManagerSupport Library

Add the Support library to the compilation path

Now that you have downloaded the support library, you will need to introduce them to the build environment when you want to use it.

    ‘com.android.support:design:22.2.0‘
What's new with the 2,design support library

In a nutshell: The Design support Library, in addition to bringing a compatible version of Material Design, also has an official package of popular third-party open source libraries.

1.Navigation View

Navigation view, which further simplifies the use of the drawer navigation framework by using attributes such as Menu,headerlayout:

2.Floating Labels for edit text

Remember to set the hint for edittext, through the hint display prompt information when the user has entered the time it disappears, is not conducive to interaction, now let it hover over.

3.Floating ActionBar

The suspension of the Actionbar, this design is very good, you can very well the interaction of frequent movements placed on this small suspended circular button, of course, the specific style and response action you can implement.

4.Snackbar

You can think of it as an upgrade to toast, longer than toast, and allow users to manually erase this notification,

5.Tabs

tab, which provides tablayout, which supports many custom attributes, simplifies operations that previously required similar effects.

6.CoordinatorLayout

Provides management of child views (relationships between parent-child views), and feedback on touch events.

7.Collapsing Toolbars

Customizable tool bar with custom locations, properties, responses, and more

8.APP Bar

Top-level navigation bar with Titile,nav Icon,action Bar and more

Summarize:

As a primer, just a brief introduction Design Support Library of what has brought about the new changes, the following will be explained by the use of the specific view control, about Material Design the part of you can refer to the official website Material Design.

Reference: Android Design support Library (need to flip the wall)

    • Weibo: @ Ming sang Android
    • E-mail: <[email protected]>
    • Personal homepage: Minsan wins the black history of Android Wang
    • Public Number: Itbird

Embrace the new changes in the Android Design Support Library (Navigation view, hover Actionbar ... )

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.