Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

刷新数据时,同时会调用loadMore #25

Open
qingtianbuyu opened this issue Jun 22, 2015 · 2 comments
Open

刷新数据时,同时会调用loadMore #25

qingtianbuyu opened this issue Jun 22, 2015 · 2 comments

Comments

@qingtianbuyu
Copy link

下拉刷新后,listView.startLoadMore();将会自动触发上拉加载更多。。。。
数据解析:

if (arg0.size() > 0) {
                if (actionType == STATE_REFRESH) {
                    curPage = 0;
                    bankCards.clear();
                    listView.setRefreshSuccess();
                     listView.startLoadMore();////********执行这里会自动执行上拉方法*****************
                } else if (actionType == STATE_MORE) {
                    listView.setLoadMoreSuccess();
                }

                // 将本次查询的数据添加到bankCards中
                for (TestData td : arg0) {
                    bankCards.add(td);
                }
                curPage++;
                showToast("第" + (page + 1) + "页数据加载完成");
            } else if (actionType == STATE_MORE) {
                showToast("没有更多数据了");
                listView.stopLoadMore();
            } else if (actionType == STATE_REFRESH) {
                showToast("没有数据");
                listView.stopLoadMore();
            }
@zhounanzhao
Copy link

同样遇到了这个问题

@zyoo5
Copy link

zyoo5 commented Feb 3, 2016

也有类似的问题,我的是只要上拉了一回,就会不停的加载更多!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants