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

如何往左拉的时候加载更多的数据 #40

Open
Qianzhanjie opened this issue Sep 6, 2019 · 1 comment
Open

如何往左拉的时候加载更多的数据 #40

Qianzhanjie opened this issue Sep 6, 2019 · 1 comment

Comments

@Qianzhanjie
Copy link

我项目中后台一次返回500条数据 我要是想左拉的时候加载更多数据请问要如何实现

@wuyinlei
Copy link

wuyinlei commented Mar 4, 2020

KLineChartView.class中
@OverRide
public void onLeftSide() {
// isLoadEnd 自己定义个变量
if (isLoadEnd) {
showLoading();
// 自己写一个listener 然后在activity或者fragment写自己的加载逻辑就行
if (kChartLoadMoreListener != null) {
kChartLoadMoreListener.onLoadMoreBegin();
}
// 加载的时候置为false 然后加载更多数据回来之后置为true
isLoadEnd = false;
}
}

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

2 participants