2020-03-25 Glide加载透明图片和占位图重叠解决方案

解决代码:.transition(DrawableTransitionOptions.with(drawableCrossFadeFactory))

DrawableCrossFadeFactory drawableCrossFadeFactory = new DrawableCrossFadeFactory.Builder(300).setCrossFadeEnabled(true).build();
Glide.with(this)
    .load(URL_JPG)
    .apply(new RequestOptions().placeholder(R.drawable.ic_launcher))
    .transition(DrawableTransitionOptions.with(drawableCrossFadeFactory))
    .into(imageView);

原文地址https://www.jianshu.com/p/28f5bcee409f

你可能感兴趣的:(2020-03-25 Glide加载透明图片和占位图重叠解决方案)