Package Index

DroidUX GalleryFlow library consists of the DroidUX GalleryFlow™ components collection. The GalleryFlow components are enhancement of the now deprecated Gallery widgets with fixes, advanced features, and other improvements to boost the performance and polish the behavior of the widgets. Using the GalleryFlow widgets, you can deliver interesting effects easily which normally are quite difficult to achieve with the other gallery type widget.

Some of the enhancements implemented in these widgets includes:

  • View effects, e.g. reflection, antialiasing, dim, fade, etc. By wrapping the item view with the companion ViewEffectLayout layout, you can add various effects to the GalleryFlow widgets, such as reflection, antialiasing, fade, dim, and custom effects that you can provide simply by calling the setCustomViewEffect(ViewEffect) and setting the duxglr_effectType attribute to custom.

    NOTE:
    • The ViewEffectLayout includes performance and memory optimizations that will help GalleryFlow widgets performs efficiently without compromising the visual quality.
    • The ViewEffectLayout is not compatible with the hardware acceleration feature introduced since the Honeycomb version (version 3.0, API 11). Therefore, if you're using the ViewEffectLayout to wrap the gallery's item views, you need to disable the hardware acceleration for the <activity/> that's using the widget. For more information on how to disable the hardware acceleration feature, read the documentation here.
  • 3D flow behaviors. Each GalleryFlow widget has its own particular flow behavior which you can customize to achieve certain effects, such as cover/album flow effect (using GalleryFlowCover), zoom flow (GalleryFlowZoom), scale flow (GalleryFlowScale), carousel flow (GalleryFlowCarousel), etc.
  • View recycling/cache mechanism. The GalleryFlow widgets has a working implementation of the view recycling/caching mechanism, which means improved performance. As discussed here and here, the Android stock Gallery widget doesn't have a working view recycling/caching mechanism . It's either broken or not (yet) fully implemented (see Issue #3376). This will slow down the performance of the application using the Gallery widget especially if you have a lot of item views, because that means the Adapter will have to create new View for every item in the data set, instead of reusing an unused view (like the ListView).

Compatibility Notes:

  • GalleryFlow v3 widgets, as other widgets in the DroidUX v3 library, are not backward compatible with the previous versions, due to the major changes implemented in DroidUX v3 library.

com.droidux.ui.widgets.gallery Contains GalleryFlow components, which are enhancement of the now deprecated Gallery widgets with fixes, advanced features, and other improvements to boost the performance and polish the behavior of the widgets.
com.droidux.ui.widgets.gallery.adapter Contains adapter classes that can be used by the GalleryFlow components.