使用Etsy的的StaggeredGridView在Eclipse [英] Use Etsy's StaggeredGridView in Eclipse

查看:117
本文介绍了使用Etsy的的StaggeredGridView在Eclipse的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用Etsy的的StaggeredGridView在我的Eclipse的一个项目。他们GitHub的页面没有提供说明导入/设置他们的Eclipse项目。如果有人成功地做到了这一点,并可以共享的步骤,这将有很大的帮助!

I wanted to use Etsy's StaggeredGridView in a project of mine on Eclipse. Their gitHub page doesn't provide instructions to import/setup their project in Eclipse. If anyone has successfully done this and can share the steps, it would help a lot!

https://github.com/etsy/AndroidStaggeredGrid

我试着按照下面的链接中列出的步骤,但没有奏效。
的gradle导入项目偏食

I tried following the steps listed in the link below, but it didn't work. Importing gradle project to eclipse

推荐答案

一个简单的方法是下载的ZIP文件,解压整个文件到一个临时目录,浏览到 \\ AndroidStaggeredGrid主\\图书馆的\\ src \\主\\ java中目录,并复制 COM 文件夹到你项目的的src \\ 目录。然后去 \\ AndroidStaggeredGrid主\\库的\\ src \\主\\资源\\值目录,将 attrs.xml 文件到你的项目的 \\资源\\值\\ 文件夹(或合并他与你的文件,如果你已经有一个)。

An easy way is to download the ZIP file, extract the entire file to a temp directory, navigate to the \AndroidStaggeredGrid-master\library\src\main\java directory, and copy the com folder into your project's src\ directory. Then go to the \AndroidStaggeredGrid-master\library\src\main\res\values directory and copy the attrs.xml file to your project's \res\values\ folder (or merge his file with yours if you already have one).

您不需要摇篮做到这一点。该人士只是成为你的项目的一部分。

You don't need Gradle to do this. The source just becomes part of your project.

另一种方法是做到这一点,是尝试并从它创建一个JAR文件,但我还没有与Android项目尝试这样做呢。

Another way is to do this, is to try and create a JAR file from it, but I haven't tried this yet with an Android project.

这篇关于使用Etsy的的StaggeredGridView在Eclipse的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆