Good evening.

I have a RecyclerView, in which I sparsed pictures from the site, but they didn't spars everything, because the site has a button "Download more", which loads another batch of pictures on the site. I need all the images from the site to be in my RecyclerView.

Previously, I was told that you need to send the same request from the application, which sends the site when you click on the "Load More" button to upload more pictures. But how to do it in Android - I'll never know. Please advise any libraries or solutions to this problem.

    1 answer 1

    You need:

    1. Open the desired page in the browser
    2. Open browser developer console
    3. Click on the button that loads the elements.
    4. The console displays what is happening - i. network request with type, parameters, headers, address
    5. Next, take the library to send network requests and repeat exactly the request sent by the browser.
    6. To start a request in android, you need to put a scrolling listener on the list, tracking the progress to the end of the list (see google-> endlessscrolling listview/recyclerview/scrollview )
    7. After obtaining the necessary data, they should update the list of adapter data and notify it of the need to redraw.
    • Yuri, thank you very much for your help! - Crok