Android Endless List

后端 未结 10 1380
梦如初夏
梦如初夏 2020-11-22 02:52

How can I create a list where when you reach the end of the list I am notified so I can load more items?

10条回答
  •  天命终不由人
    2020-11-22 03:32

    At Ognyan Bankov GitHub i found a simple and working solution!

    It makes use of the Volley HTTP library that makes networking for Android apps easier and most importantly, faster. Volley is available through the open AOSP repository.

    The given code demonstrates:

    1. ListView which is populated by HTTP paginated requests.
    2. Usage of NetworkImageView.
    3. "Endless" ListView pagination with read-ahead.

    For future consistence i forked Bankov's repo.

提交回复
热议问题