开发者

Android ListView - detect when footer is visible [duplicate]

开发者 https://www.devze.com 2023-03-26 18:54 出处:网络
This question already has answers here: Closed 11 years ago. Possible Duplicate: Android Endless List I have a list.When it scrolls to the bottom of the list开发者_运维问答, it should auto
This question already has answers here: Closed 11 years ago.

Possible Duplicate:

Android Endless List

I have a list. When it scrolls to the bottom of the list开发者_运维问答, it should automatically load more rows. For example, I have a list of 10 rows, we scroll to the bottom and it loads 10 more rows giving a total of 20. I have a footer row at the bottom. How can I detect when the footerrow is visible to the user?


Implement OnScrollListener and check to see if the footer is visible and load items accordingly.

0

精彩评论

暂无评论...
验证码 换一张
取 消