Skip to content

Replacement for Gallery widget in Android with View recycling.

Notifications You must be signed in to change notification settings

darin-lao/EcoGallery

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

EcoGallery

Replacement for Gallery widget in Android with View recycling. This originally made by Joseph Earl (details).

##Usage:

1- Include 'EcoGallery' android library to your project. (Eclipse project: properties -> Android -> Library - Add)

2- You could declare EcoGallery in the layout xml file, Example:

<us.feras.ecogallery.EcoGallery
    android:id="@+id/images"
    android:layout_width="match_parent"
    android:layout_height="60dp" 
    android:layout_alignParentBottom="true" 
    /> 

3- Use EcoGalleryAdapterView instead of AdapterView.

For a complete tutorial check the wiki.

Sample App

Click here to view the sample app

Change Log:

June 24, 2013

##Limitation:

The existing implementation assumed that each different position in the adapter resulted in a unique view. The changes are only good if your Gallery contains only one type of item, if not you'll need to add some sort of key based on item type and the amount of that type required.

About

Replacement for Gallery widget in Android with View recycling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published