我需要RxJava的帮助。一切正常。但是,我想用其他方法手动调用onNext。
Observable<Data> mylist =Observable.fromIterable(datalist);
mylist.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.buffer(6)
.subscribe(new Observer<List<Data>>() {
@Override
public void onSubscribe(Disposable d) {
}
@Override
public void onNext(List<Data> list) {
myadapter.addData(list);
}
@Override
public void onError(Throwable e) {
}
@Override
public void onComplete() {
fetchNextPage();
}
});
像这样;
OnloadMore() {
onNext()
}