-
Notifications
You must be signed in to change notification settings - Fork 2k
glide 图片居中问题 #218
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
Comments
应该和fitxy没什么关系。 |
bitmap 创建需要传DisplayMetrics,你可以在你glide 的transform 里面写。 |
👌 |
@mawenjie1234 我这是用glide的设置圆角才有这个问题,跟踪代码,是在transform方法中这行代码改变的density,
glide代码:
|
你重新 createBitmap 个新的 bitmap,宽高和内容都 copy 一下 pool.get() 获取的这个 bitmap 就可以了,对 bitmap 的备份,网上教学内容很多 |
@JessYanCoding 因为我这边发现是在 |
兄弟,你这个方案现在没有效果啊 |
glide 适配图片有问题 imageview设置的fitxy 但是展示出来过小的图片 就跑到左上角了
The text was updated successfully, but these errors were encountered: