How to load data into reclyerview while downloading them from post async http request

前端 未结 1 476
一个人的身影
一个人的身影 2021-01-26 00:41

I am developing an android app which need\'s to download data(products details,images) from my server using httpclient the problem is i ne

相关标签:
1条回答
  • 2021-01-26 00:58

    Maybe you want to do pagination. It is the same thing that happens in social media feed, the content will download as you scroll down. For example, when you enter in the youtube app there is some video in your feed and then when you scroll down, it starts loading and then some new videos appear, this is called Pagination.

    This is a complex approach but you can do it by reading the following articles. Paging Android Guide, Video about Paging.

    After reading these articles you can follow this tutorial, and here is the source code of this tutorial.

    0 讨论(0)
提交回复
热议问题