使用滑行从 gif 图像中删除透明的白色背景?
Remove transparent white background from gif image using glide?
如何在使用 glide 加载时去除图像周围的白色背景。您可以在下面的代码和屏幕截图中找到;
Glide.with(thiscontext).load(R.drawable.badge_green_yellow)
.asGif().crossFade()
.diskCacheStrategy(DiskCacheStrategy.SOURCE).into(holder.ivHourlyIcon);
截图
将您的 GIF 放入原始文件夹 (res/raw/badge_green_yellow.gif)
然后像这样加载它
Glide.with(thiscontext).asGif().load(R.raw.badge_green_yellow).into(holder.ivHourlyIcon);
如何在使用 glide 加载时去除图像周围的白色背景。您可以在下面的代码和屏幕截图中找到;
Glide.with(thiscontext).load(R.drawable.badge_green_yellow)
.asGif().crossFade()
.diskCacheStrategy(DiskCacheStrategy.SOURCE).into(holder.ivHourlyIcon);
截图
将您的 GIF 放入原始文件夹 (res/raw/badge_green_yellow.gif)
然后像这样加载它
Glide.with(thiscontext).asGif().load(R.raw.badge_green_yellow).into(holder.ivHourlyIcon);