簡體   English   中英

Android同時使用頂部的Pull to Refresh ListView並在滾動到底部時自動加載更多數據

[英]Android simultaneously use Pull to Refresh ListView at the top and automatically Load more data when scroll to the Bottom

在將其標記為重復之前,請仔細閱讀。 我正在使用此庫中的 pulltorefresh,並且使用以下代碼在屏幕頂部隱含了pulltorefresh:

listView.setMode(Mode.PULL_FROM_START);

現在我也想使用ListView滾動到屏幕底部時自動加載更多數據。 使用pulltorefresh庫是否可能? 如果沒有,請幫助我解決此問題。

提前致謝。

OnScrollListener偵聽器設置為ListView 根據顯示的項目數,從web(異步)獲取新行,並將其添加到ArrayList(或用於填充列表的任何行),然后調用notifyDataSetChanged()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM