How to properly import an open source library with Eclipse Androidstaggeredgrid

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.