Skip to content
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 配合使用,不知道怎么操作? #109

Closed
zomll opened this issue May 22, 2019 · 6 comments

Comments

@zomll
Copy link

zomll commented May 22, 2019

如题

@panpf
Copy link
Owner

panpf commented May 23, 2019

为什要跟 glide 配合使用,不建议这样做,图片加载框架都会申请固定的内存缓存,同时使用多个的话会同时申请多份内存缓存,导致 App 可用内存降低

@zomll
Copy link
Author

zomll commented May 23, 2019

为什要跟 glide 配合使用,不建议这样做,图片加载框架都会申请固定的内存缓存,同时使用多个的话会同时申请多份内存缓存,导致 App 可用内存降低

主要是先有项目已经开发很久了,里面图片加载都是用的glide,全部替换为sketch 不太方便

@panpf
Copy link
Owner

panpf commented May 23, 2019

这种情况确实不太好替换,如果不是非换不可,还是保持现状,具体还得看需求

@zhuangzhitu
Copy link

+1。代码设计有点复杂,有些人可能只想用大图加载以及缩放功能,发现不好抽离代码。

@liyujiang-gzu
Copy link

这种情况确实不太好替换,如果不是非换不可,还是保持现状,具体还得看需求

可以考虑将SketchView的限制改为任意ImageView,这样替换就轻而易举了。

@panpf
Copy link
Owner

panpf commented Apr 14, 2022

全新 3.0 版本已经发布 alpha 版,欢迎体验。任意 ImageView 都可以

@panpf panpf closed this as completed Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants