Example of using Android Design Support Library (i)

Source: Internet
Author: User

To learn a new point of knowledge, the best is a demo,design has a very good demo that can be downloaded from this address: Https://github.com/chrisbanes/cheesesquare

After downloading this, but can not run, which in the Gradle script, there is not even a compilation

    ‘com.github.bumptech.glide:glide:3.6.0‘    ‘de.hdodenhof:circleimageview:1.3.0‘

These two cannot be downloaded, the workaround:
1, download glide, download jar or compile AAR
Download Glide.jar Address: Http://mvnrepository.com/artifact/com.github.bumptech.glide/glide/3.3.1#gradle
Download glide to compile: http://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/en
2. After downloading Circleimageview, compile into AAR:
Download: Https://github.com/hdodenhof/CircleImageView

Back to design Demo, modify the compilation Gradle:

dependencies {      compile fileTree(dir‘libs‘, include: [‘*.jar‘])    ‘com.android.support:design:22.2.1‘    ‘com.android.support:appcompat-v7:22.2.1‘    ‘com.android.support:cardview-v7:22.2.1‘    ‘com.android.support:recyclerview-v7:22.2.1‘    compile project(‘:circleimageview-release‘)}

Now it compiles properly, with the following interface:

Then you can learn to learn the demo, and then we'll do the code analysis.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Example of using Android Design Support Library (i)

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.