-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
关于 使用 Glide 用了 placeholder 死循环解决方案 #51
Comments
经过测试上面依旧有问题 需要改成
继续优化 GridImageView 注释掉 破坏了 recyclerView 缓存机制 |
最后附上两个类 单图模式已经改为适应图片尺寸 需要设置图片宽高 import android.content.Context; import java.util.ArrayList; /**
import android.content.Context; /**
最后Glide圆角方案:
`import android.content.res.Resources; import com.bumptech.glide.load.engine.bitmap_recycle.BitmapPool; import java.security.MessageDigest; public class GlideRoundTransform extends BitmapTransformation {
}` |
@OverRide
protected void onLayout(boolean changed, int l, int t, int r, int b) {
Log.i("loadSquareSmallWallpaperData", "changed=" + changed + ",isonDetachedFromWindow=" + isDetachedFromWindow);
if (changed || isReDraw) {
isReDraw = false;
layoutChildrenView();
}
}
The text was updated successfully, but these errors were encountered: