Android Gif Animation Example. The following code shows an example. To make our android app a look a little more polished we can add animated vector drawable.
Create a New Project. Steps to Create an Animated Splash Screen. AndroidgraphicsImageDecoder introduced from API 28 is a class for converting encoded images like PNG JPEG WEBP GIF or HEIF into Drawable or Bitmap objects.
Add the following dependency in buildgradle.
XamarinAndroid ImageView that handles Animated GIF images. This is a derivative of Felipe Limas GifImageView. If you need to post-process the GIF frames you can do that via GifImageViewsetOnFrameAvailable. A sample GIF is given below to get an idea about what we are going to do in this article.