Skip to content

yylyingy/SimpleGif

Repository files navigation

SimpleGif

An Android NDK GIF Library

GIF library built with cmake for usage with android gradle build system. This c source code refer to android-ndk-gif. The java api is similar to Glide,but the performance is better than Glide.

Note

Now,the SimpleGif's lifecycle can bind with the Fragment and Activity's lifecycle.

The next pictures are showing Runtime CPU and memory Usage comparerison between Glide and SimpleGif,Both of them are displaying nine gifs on the screen,

SimpleGif: SimpleGif

Glide: Glide

Blog https://blog.csdn.net/qq372848728/article/details/59104104

How do I use SimpleGif?

The api of SimpleGif is similar to Glide,but SimpleGif is a NDK library. Simple use cases will look something like this:

// For a simple view:
@Override public void onCreate(Bundle savedInstanceState) {
  ...
  ImageView imageView = (ImageView) findViewById(R.id.my_image_view);

  SimpleGif.with(this).load("/sdcard/simple.gif").into(imageView);
}

Decode

gif

gif

Feature

  • GIF Encoding.
  • GIF Decoding.

About

A library help display GIFs on Android

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published