1
1
101-s2019-02-05 22:45:03
Java
101-s, 2019-02-05 22:45:03

RecicleView - how to download a large list of images from the Internet?

The application has pictures, and periodically, once a week, new ones will be added via the Internet.
The task is to load about 1000 pictures in RecicleView in png format of small size - 300dp
How would you do it? If in adapter onBindViewHolder use Glide

Glide.with(context)
                .load(url)
                .into(holder.imView);

then the user does not see that the loading is in progress, the application seems to slow down and the list is not displayed completely at the first load.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
illuzor, 2019-02-05
@101-s

upload about 1000 pictures

No operating system is enough for this.
Read how RecyclerView works.
Using Glide is a good idea.
This is your fault. You can show the placeholder through the same glide. Or, until the download is over, you can display the ProgressBar, and after downloading, hide it and show the image.

O
Oleg, 2019-02-05
@402d

https://play.google.com/intl/ru_ALL/about/ip-imper... Have you
already issued permissions for all all the pictures?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question