Skip to content

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gifsnap

Android library for creating a gif of any view.

Created during a quick hour hackathon, needs optimization.

Example gif created from app:

alt tag

This library uses Gif Encoder from https://github.com/nbadal/android-gif-encoder. Please follow any license restrictions from that code (AndroidGifEncoder).

Example Usage, which will record a gif with 40 frames of the view android.R.id.content (root view of an activity). Keep in mind that a lot of processing is done on background threads....callback is on UI thread.

GifSnap gifSnap = new GifSnap(findViewById(android.R.id.content));
gifSnap.recordGif("GifSnap", 40, new OnGifSnapListener() {
    @Override
    public void onGifCompleted(String gifPath) {

    }
});

Notes:

  • app module is just for local testing.
  • code is a little messy...will be refactored soon.

About

Android library for creating a gif of any view.

Resources

Stars

8 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages