Search code examples
javaandroidandroid-librarycardslib

How to include cardslib to my Android project?


I want to create a GridView like GooglePlay.

I found this library on Github. I don't exactly know how to include it to my project. I tried to add it in "Build Path", but it doesn't work.

Is it possible to export it as a jar file?


Solution

  • You will have to import library directory as a project in your Eclipse just like @ssantos said in the answer. However you have to do one extra thing to make it work.

    All the code is in a sub folder called "java". You have to right click on it and make it as source folder.

    For more information you can look at the official guidlines https://github.com/gabrielemariotti/cardslib/blob/master/doc/BUILD.md