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)