Questions tagged [animatedimagedrawable]

6 questions
5
votes
2 answers

How to use AnimatedImageDrawable (GIF image) before API 28?

In API 28 AnimatedImageDrawable was introduced for displaying gif images: https://developer.android.com/reference/android/graphics/drawable/AnimatedImageDrawable.html Drawable for drawing animated images (like GIF). The problem is that they don't…
NullPointerException
  • 36,107
  • 79
  • 222
  • 382
0
votes
0 answers

Using AnimatedImageDrawable inside ImageSpan renders wrong size

I am using ImageSpan to render custom emoji in line with my text, and it works great. I use setBounds on the Drawable to match the font metrics so that it ends up the right size with the text. But when I have an AnimatedImageDrawable it renders at…
singpolyma
  • 10,999
  • 5
  • 47
  • 71
0
votes
1 answer

Gif in Fragment (AnimatedImageDrawable) Android

I want to place a gif in a fragment but the gif does not show, override fun onCreateView( inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle? ): View? { binding = DataBindingUtil.inflate( inflater, …
Edvin Keskin
  • 133
  • 1
  • 6
0
votes
0 answers

AnimatedImageDrawable with remote url

I'm trying to use AnimatedImageDrawable for displaying animated images in my app, but I keep hitting an error each time I run the app: Java.IO.FileNotFoundException: No content provider:…
Eman
  • 1,093
  • 2
  • 26
  • 49
-1
votes
1 answer

How to combine a Gif Image into UIImageView with overlaying UIImageView in swift?

A gif image is loaded into a UIImageView (by using this extension) and another UIImageView is overlaid on it. Everything works fine but the problem is when I going for combine both via below code, it shows a still image (.jpg). I wanna combine both…
-1
votes
1 answer

Android: how to make AnimatedImageDrawable fill the ImageView

I am testing the new AnimatedImageDrawable from Android 9. It is quite convenient comparing to old android.graphics.Movie class. However, I just cannot make it fill the whole ImageView with scaleType="fitXY". I tried other scaleTypes and they all…
Robin
  • 10,052
  • 6
  • 31
  • 52