How do I include a custom library from GitHub in my Android app?

I am trying to use this library from GitHub for a segmented control on Android.

My problem is that I don't know how to include the provided library in my existing project. I tried to copy the src and res (library and sample) files into my project and change their package names to match mine, but the files are filled with errors and won't compile.

I'm new to Android development, so I'm not sure how to bring these files into my project so that I can use them and create the sharded controllers I want.

Note. I am using Eclipse IDE from Android site (ADT v22.6.2).

+3


source to share


1 answer


Hi you will want to actually clone the entire repo and import this project as your own project and then reference that project using this method. Eclipse Android project, how to reference library in workspace?



Good luck.

+1


source







All Articles