What we bring to you today is how to correctly import the code of the Open Source Library Androidstaggeredgrid, and when you use the open source control on GitHub, you have more or less encountered an engineering structure like Androidstaggeredgrid. As shown in the following:
Figure (1)
If we remember correctly, the structure of the Ldrawer open source control is the same as the structure (the name is not clear, only remember that the function is an open source control of the slide menu). After you've downloaded from GitHub, you'll see the project and the corresponding library look like this after importing into eclipse:
Figure (2)
The solution is shown in the picture below, you can see the figure.
Figure (3)
Figure (4)
Figure (5)
And then I quote the library in mainactivity, and then it's
Figure (6)
Do not error Ah, that is not the program can use it, in fact, here is still uncertain. Compile and run the test. Results found
Everyone open the library's manifest file, delete the corresponding code can:
Well, to this step, I believe your project has been successfully imported and can be run correctly. This type of open-source project on GitHub will not have to suffer from the introduction of engineering errors. In addition to remind you that the library is to right-click to set the project for Islibrary, I believe we all know what it means, to talk about so many things, there is no right after you please point out, thank you. Reprint Please specify source: http://blog.csdn.net/android_jiangjun/article/details/40479713
How to properly import an open source library with Eclipse Androidstaggeredgrid