GuidesAPI ReferenceRelease Notes
HomeLog InHome
Guides

BlazeWidgetItemImageAnimatedThumbnailStyle - Android

The BlazeWidgetItemImageAnimatedThumbnailStyle class represents the configuration for the animated thumbnails style.

Limitation: Animated GIF thumbnails are supported only on Row widgets (Stories, Moments and Videos).

Properties

isEnabled: Boolean,
horizontalAnimationTriggerPercentage: Float

isEnabled

var isEnabled: Boolean

A flag indicating whether the Widget should utilize Animated Thumbnails behavior. If used, please see the animated presets:

  • BlazeWidgetLayout.Presets.StoriesWidget.Row.animatedThumbnailsCircles
  • BlazeWidgetLayout.Presets.StoriesWidget.Row.verticalAnimatedThumbnailsRectangles
  • BlazeWidgetLayout.Presets.MomentsWidget.Row.verticalAnimatedThumbnailsRectangles
  • BlazeWidgetLayout.Presets.VideosWidget.Row.verticalAnimatedThumbnailsRectangles
  • BlazeWidgetLayout.Presets.VideosWidget.Row.horizontalAnimatedThumbnailsRectangles

One item animates at a time. Items without an animated thumbnail keep showing their static thumbnail.

An animated row moves one item per swipe and rests with an item at its start. A row whose image thumbnailType is SQUARE_ICON (circles) scrolls freely instead.

Note isEnabled is applicable only to Row widgets. Grid and single-item layouts are not supported.

horizontalAnimationTriggerPercentage

var horizontalAnimationTriggerPercentage: Float

The percentage of the widget's width at which the animation is triggered. This constant represents the threshold, expressed as a percentage of the widget's width, that determines when an animation should be triggered during horizontal scrolling in the widget's view.

Expected values are between 0f - 1f.


Did this page help you?