koral-- / android-gif-drawable

Views and Drawable for displaying animated GIFs on Android

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

auto start/stop when GifImageView visibility changed?

magicchao opened this issue · comments

I need to stop gif RenderTask running when the GiftImageView is not visible, and resume when visible, because it spends CPUs
So can this be added to GiftImageView, maybe using onVisibilityChanged, as an option?

We have recyclerViews in viewpager, in which there are GiftImageViews. We found that the GiftImageViews in recyclerView that is not current visible tab are running RenderTasks