GIF Research Summary:
There are three open source projects implemented gif,1, Android-gif-drawable (https://github.com/koral--/android-gif-drawable) 2, Imageviewex (https:// GITHUB.COM/FRAPONTILLO/IMAGEVIEWEX) 3, Gifimageview (http://www.jcodecraeer.com/a/opensource/2014/1206/2120.html)
Pros and cons Analysis: Gifview can not solve the oom problem very well, android-gif-drawable the underlying decoding using C implementation, greatly the decoding efficiency, and to a large extent to avoid the phenomenon of oom, this can get the number of frames, The minimum number of bytes required to store pixels per frame, the minimum number of bytes allocated per frame, and the ability to control whether or not the GIF is stopped or run; Imageviewex support GIF display ImageView, rely on a lot, the compilation process is cumbersome.
(14) GIF Implementation Research summary of Android project