Image view with animated GIF support.
It can also display other types of images, but only GIF images can be animated.
Displaying animated GIF images consumes lots of CPU resources, it is highly unrecommended to constantly display animated GIF images.
For optimization, hiding the view would automatically pause the animation, and showing the view would automatically resume previous state.
Create a new
const char* kClassName
The class name of this view.
void SetImage(Image* image)
Set the image.
After setting the image, the animated image will start playing automatically.
Image* GetImage() const
Return the image.
void SetAnimating(bool animating)
Set whether the animated image should be played.
bool IsAnimating() const
Return whether the image is animating.