@Override public void getDataListSucc(List<Model> dataList) { mAdapter.getList().addAll(dataList); mAdapter.notifyDataSetChanged(); getHandler().postDelayed(() -> { mLinearLayoutManager.setStackFromEnd( mLinearLayoutManager.findLastVisibleItemPosition() - mLinearLayoutManager.findFirstVisibleItemPosition() < mAdapter.getItemCount() -1 ); },50); }
网友评论