Glide Library for Android
-
I'm downloading pictures on the gridview. The pictures begin to be downloaded only when the list element appears on the screen. How can they be downloaded (permissive) before they appear on the screen so that the user doesn't watch progressbar in a few seconds?
-
You're probably starting a load in the element's drawing method.
gridView
in his adapter.getView
and you get that behavior.To start loading, you can start loading in the adapter designer earlier. Then it depends on the library. If she's keeping the pictures out of the cash like https://github.com/nostra13/Android-Universal-Image-Loader There's no problem. If you don't, I'll have to go with my implementation.