列表视图中的无限数据加载

时间:2017-05-22 04:51:59

标签: android json listview android-recyclerview

我在json中有无限的数据我想在listview / recyclerview中实现,并且在listview / recyclerview

中加载更多
[{
    "id": "1",
    "firstName": "John",
    "lastName": "Doe"
}, {
    "id": "2",
    "firstName": "Anna",
    "lastName": "Smith"
}, {
    "id": "3",
    "firstName": "Joy",
    "lastName": "Jones"
}, {
    "id": "4",
    "firstName": "Sal",
    "lastName": "Jsdones"
}, {
    "id": "5",
    "firstName": "Pedfdter",
    "lastName": "sdfs"
}, {
    "id": "6",
    "firstName": "sfsfs",
    "lastName": "gjng"
}, {
    "id": "7",
    "firstName": "fgfg",
    "lastName": "dfgg"
}, {
    "id": "8",
    "firstName": "fdfgde",
    "lastName": "erwrw"
}, {
    "id": "9",
    "firstName": "fsc",
    "lastName": "cscfsd"
}]

现在我想添加ion-infinite-scroll,但是无法显示相同的数据

这是我的第一个应用程序。

1 个答案:

答案 0 :(得分:0)

在github中读取我的样本: EndlessRecyclerview