Commit fdceb627 authored by jyx's avatar jyx

代码优化

parent dd0ed54f
......@@ -189,4 +189,15 @@ object GlideUtils {
.apply(RequestOptions().skipMemoryCache(true))
.into(imageView)
}
//加载Gif*****
fun loadRoundImageViewGif(mContext: Context, drawable: Int, imageView: ImageView) {
val options = RequestOptions()
.fitCenter()
.diskCacheStrategy(DiskCacheStrategy.DATA)
Glide.with(mContext)
.load(drawable)
.apply(options)
.into(imageView)
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment