private void rowChange(int rowPosition) {
int rowSize = mTableContent.size();
List<RowHeader> list = new ArrayList<>();
for (int i = rowPosition; i < rowSize; i++) {
RowHeader header = new RowHeader(String.valueOf(i), i + 1 + "");
list.add(header);
}
mTableAdapter.changeRowHeaderItemRange(rowPosition, list);
}
the reason:
AbstractRecyclerViewAdapter.java
public void changeItemRange(int positionStart, List<T> items) {
if (mItemList.size() > positionStart + items.size() && items != null) {
for (int i = 0; i < items.size(); i++) {
if (i != RecyclerView.NO_POSITION) {
mItemList.set(i + positionStart, items.get(i));
}
}
notifyItemRangeChanged(positionStart, items.size());
}
}
the reason:
AbstractRecyclerViewAdapter.java
modify