koral-- / android-gif-drawable

Views and Drawable for displaying animated GIFs on Android
Other
9.51k stars 1.78k forks source link

GifTextureView end listener #798

Open Kj7r8Ff3h opened 2 years ago

Kj7r8Ff3h commented 2 years ago

I am using GifTextureView to display gif images and it works great.

val inputSource = InputSource.ResourcesSource(requireContext().resources , R.drawable.test)
binding.ivTest.setInputSource(inputSource)

However, I need to perform some tasks once gif is completed. May I know how to achieve it? I have tried GifImageView before and it is blinking Thanks

koral-- commented 1 year ago

Currently, there is no such feature in GifTextureView. I will keep this issue open as a feature request.

koral-- commented 1 year ago

Regarding GifImageView blinking you may try this: https://github.com/koral--/android-gif-drawable/issues/267#issuecomment-206962158