Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

falnatsheh/EcoGallery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT IS RETIRED

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.

Notes

  • If you got Failed to find style 'ecoGalleryStyle' in current theme then add an empty style in your AppTheme styles.xml see an example below (thanks to @hastoukopsaro):
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
    <item name="ecoGalleryStyle">@style/ecoGalleryStyle</item>
</style>

<style name="ecoGalleryStyle"> </style>

About

Replacement for Gallery widget in Android with View recycling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages