我是Android新手。请帮助我如何在My Project Android Eclipse中为Android库添加微光。这是 Shimmer for Android
的链接答案 0 :(得分:3)
1) Download library from here - https://github.com/RomainPiel/Shimmer-android/releases
2) In eclipse
- Right click package explorer -> New -> Other -> Android project from existing code
- Browse to location of shimmer library download
- Under project to import, choose project 'library' .( Only library is required. No need sample)
- Rename it to something like 'shimmer' under new project name section for library otherwise it will be name 'main'
- Mark copy project to workspace to maintain separate copy of library
- Finish
Now in package explorer
- Goto 'java' folder of shimmer
- Right click -> Build path -> use as source folder
- Right click -> properties -> Android -> Mark 'is library'
- Clean
3) Now add library to any project
- Right click target project -> properties
- Goto Android
- Click Add under library panel
- choose shimmer -> Apply
4) Clean project
答案 1 :(得分:0)
现在你可以在android studio中添加这个gradle。
dependencies {
compile 'com.facebook.shimmer:shimmer:0.1.0@aar'
}