Open zhengshubin opened 6 years ago
RecyclerViewStateUtils.setFooterViewState(RealDataActivity.this, mRecyclerView, REQUEST_COUNT, LoadingFooter.State.NetWorkError, mFooterClick); //当网络错误重新点击或加载 private View.OnClickListener mFooterClick = new View.OnClickListener() { @Override public void onClick(View v) { Log.d(TAG, "onClick: "); RecyclerViewStateUtils.setFooterViewState(RealDataActivity.this, mRecyclerView, REQUEST_COUNT, LoadingFooter.State.Loading, null); mPresenter.onPageShowRealData(param);
} };
RecyclerViewStateUtils.setFooterViewState(RealDataActivity.this, mRecyclerView, REQUEST_COUNT, LoadingFooter.State.NetWorkError, mFooterClick); //当网络错误重新点击或加载 private View.OnClickListener mFooterClick = new View.OnClickListener() { @Override public void onClick(View v) { Log.d(TAG, "onClick: "); RecyclerViewStateUtils.setFooterViewState(RealDataActivity.this, mRecyclerView, REQUEST_COUNT, LoadingFooter.State.Loading, null); mPresenter.onPageShowRealData(param);