简体   繁体   English

如何将 MaterialViewPager 导入到 eclipse

[英]How to import MaterialViewPager to eclipse

I want to import this library: https://github.com/florent37/MaterialViewPager我想导入这个库: https : //github.com/florent37/MaterialViewPager

Any thing i have done,I couldn't import and make usage this project in my own project.我做过的任何事情,我都无法在我自己的项目中导入和使用这个项目。 I'm newbie!我是新手!

How can i just import it to my project in eclipse?我怎样才能将它导入到我的 eclipse 项目中?

Please tell me i have to copy which folder to my own project and how to use it?请告诉我我必须将哪个文件夹复制到我自己的项目中以及如何使用它?

I don't know i have to make a new library or just copy file in my own project.我不知道我必须创建一个新库或只是在我自己的项目中复制文件。

Thanks.谢谢。

Download the library as a zip Extract it Go to materialviewpager/src/main将库下载为 zip 解压到 materialviewpager/src/main

You will see java and res folder Open the java folder you will see com folder, copy it to your apps src folder您将看到 java 和 res 文件夹打开 java 文件夹您将看到 com 文件夹,将其复制到您的应用程序 src 文件夹

Open the res folder, dont copy it yet.打开res文件夹,先不要复制。 Go to values folder rename the xml files inside it to this anything_XMLFILENAME.xml just to avoid any copying conflicts转到 values 文件夹,将其中的 xml 文件重命名为 any_XMLFILENAME.xml 以避免任何复制冲突

now copy the contents of res folder to your app's res folder.现在将 res 文件夹的内容复制到您的应用程序的 res 文件夹中。

You will have some errors in library's class files because you need to organize the imports first.您将在库的类文件中出现一些错误,因为您需要先组织导入。

And viola you now have the library :D中提琴你现在有了图书馆:D

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM