Android Studio Picasso gif loading image for placeholder

Android Studio Picasso gif loading image for placeholder :

From what I know, Android doesn't have inbuilt support for GIF. So ImageView doesn't support GIF by default.

I would suggest you to use Glide library for image loading, and caching since it provides support for GIF. Glide is similar to Picasso, and is sometimes considered better than Picasso. The methods used are also similar to Picasso, except that it has a asGif() method which can load image into ImageView as GIF.
Glide.with(context)
    .load(imageUrl)
    .asGif()
    .placeholder(R.drawable.loading_gif)
    .into(imageView);

Comments

Popular posts from this blog

how to encode and decode emoji in android?

Could not identify launch Activity: Default Activity not found

Json parsing Exaample using retrofit in android