We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
。。。。 recycleViewAdapter = new ArtRecycleViewAdapter(this); recycleView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false)); recycleView.addItemDecoration(new DividerItemDecoration(this)); recycleView.setAdapter(recycleViewAdapter); mPtrFrame.setPtrHandler(new PtrDefaultHandler() { @OverRide public void onRefreshBegin(PtrFrameLayout frame) { page=1; isRefresh=true; hasMore = true; loadData(page, mode, "0", deviceId, "0"); } }); mPtrFrame.setMode(PtrFrameLayout.Mode.REFRESH); //setmode()???? mPtrFrame.setOffsetToRefresh(200); mPtrFrame.autoRefresh(true); CustomPtrHeader header = new CustomPtrHeader(this,mode); mPtrFrame.setHeaderView(header); mPtrFrame.addPtrUIHandler(header); 。。。 setMode()方法在哪里调用,如何用
The text was updated successfully, but these errors were encountered:
没有效果是什么意思? setMode是用来定义是否需要上拉或者下拉的。比如调用mPtrFrame.setMode(PtrFrameLayout.Mode.REFRESH);就无法上拉加载更多,只能下拉刷新
mPtrFrame.setMode(PtrFrameLayout.Mode.REFRESH);
Sorry, something went wrong.
No branches or pull requests
。。。。
recycleViewAdapter = new ArtRecycleViewAdapter(this);
recycleView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
recycleView.addItemDecoration(new DividerItemDecoration(this));
recycleView.setAdapter(recycleViewAdapter);
mPtrFrame.setPtrHandler(new PtrDefaultHandler() {
@OverRide
public void onRefreshBegin(PtrFrameLayout frame) {
page=1;
isRefresh=true;
hasMore = true;
loadData(page, mode, "0", deviceId, "0");
}
});
mPtrFrame.setMode(PtrFrameLayout.Mode.REFRESH); //setmode()????
mPtrFrame.setOffsetToRefresh(200);
mPtrFrame.autoRefresh(true);
CustomPtrHeader header = new CustomPtrHeader(this,mode);
mPtrFrame.setHeaderView(header);
mPtrFrame.addPtrUIHandler(header);
。。。
setMode()方法在哪里调用,如何用
The text was updated successfully, but these errors were encountered: