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:
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
.ViewEffectLayout
includes performance and memory optimizations that
will help GalleryFlow widgets performs efficiently without compromising the visual quality.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.
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.
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:
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. |