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.
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
Post a Comment