AndroidStaggeredGrid Gradle Library for Eclipse

In my project for reading RSS, I need a good grid for elements of different sizes (which contain image and text).

I was looking for solutions to create a Staggered Grid on Android and met the Etsy AndroidStaggeredGrid library . I use Eclipse, but the library was done for Gradle.

I want to use this library in my Android project. I already tried to follow this answer , but could not succeed. How to import this library into my Android project.

+7
android eclipse
source share
1 answer
  • Create an Android app project, use any name for the package name.
  • Flag "Mark this project as a library."
  • Unflag Create Custom Launcher Icon and Create Activity
  • Import the jts folder of the Etsy library and then Build Path> Use as Source Folder.
  • Import the res folder of the Etsy library overwrites your old res folder.
  • Use this in AndroidManifest.xml

    <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.etsy.android.grid" > </manifest> 
  • Import Support Library: Android Tools> Add Support Library
  • Remove any other packages in gen, but "com.etsy.android.grid"
  • In your project, Android Tools> Fix Project Properties.

Now it should work, you can use the library in your project.

+13
source share

All Articles