1、添加依赖
implementation 'com.github.bumptech.glide:glide:4.7.1'

2、放置一个ImageView.
3、加载,ivGif是ImageView实例

RequestOptions options = new RequestOptions()
.diskCacheStrategy(DiskCacheStrategy.RESOURCE);
Glide.with(mContext).load(R.drawable.gif1).apply(options).into(ivGif);

相关文章:

  • 2021-09-11
  • 2021-07-05
  • 2021-06-01
  • 2021-08-26
  • 2022-12-23
  • 2021-05-11
  • 2021-12-25
  • 2022-12-23
猜你喜欢
  • 2021-06-11
  • 2021-11-17
  • 2021-08-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案