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
Can we use Glide library with this to display the image? #234
Comments
Your best approach would be to use Glide to downloadOnly. Because it gives you a File that you can use directly in this view. I eventually switched to UIL because I can access cache files and it still gives me bitmaps so I can use them in the preview part. |
you can use this: |
Here's one approach. For some reason formatting did not work:
|
@gnumilanix 使用你说的方法 glide显示大图,显示多张后,还会出现后面的图显示不出来的情况,改如何解决 |
I'll close this now. There's plenty of advice on this in these comments, other issues and StackOverflow. The view can't easily be changed to work with image loaders because most work with bitmaps, bypassing this view's support for large images without out of memory errors. As kakai248 says, using an image loader to store the file locally is best. |
|
How I downloaded a file with Glide and displayed in SSIV, just in case someone was looking for an example
|
@CarsonRedeye Thank you, this is the right answer! When using Bitmaps as response, the app gets slowed down as hell while using the File, everything works like with a classic imageview. |
I am using Glide everywhere else and would like to integrate Glide here as well. Glide automatically takes care of all the network calls and caching. That would be nice to have.
The text was updated successfully, but these errors were encountered: