Android Design Support Library (1), androiddesign
Learning a new knowledge point, the best is a Demo, Design has a very good Demo, you can download through this address: https://github.com/chrisbanes/cheesesquare
After Downloading this file, it cannot run. In the gradle script, some cannot be compiled.
compile 'com.github.bumptech.glide:glide:3.6.0' compile 'de.hdodenhof:circleimageview:1.3.0'
The two cannot be downloaded. solution:
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 for compilation: http://inthecheesefactory.com/blog/get-to-know-glide-recommended-by-google/en
2. Download circleimageview and compile it into aar:
Download: https://github.com/hdodenhof/CircleImageView
Return to the Design Demo and modify and compile gradle:
dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support:design:22.2.1' compile 'com.android.support:appcompat-v7:22.2.1' compile 'com.android.support:cardview-v7:22.2.1' compile 'com.android.support:recyclerview-v7:22.2.1' compile project(':circleimageview-release')}
Now you can compile it normally. The interface is as follows:
Then you can learn about this Demo and perform code analysis.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.