Skip to content

Commit

Permalink
修复分页时加入多余的数据
Browse files Browse the repository at this point in the history
  • Loading branch information
Ellen2018 committed Jul 11, 2019
1 parent d386304 commit edb6a18
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -429,15 +429,19 @@ public void onClick(View v) {
int itemCountCopy = 0;
if (pagingMode != null) {
if (pagingMode.isVer()) {
if(tableViewAdapter.getTableRow()<=pagingMode.getFirstSize()){
pagingMode.setFirstSize(tableViewAdapter.getTableRow());
}
itemCountCopy = pagingMode.getFirstSize() * tableViewAdapter.getTableColumn();
setColumnNumber(tableViewAdapter.getTableColumn());
setRowNumber(pagingMode.getFirstSize());
getGridLayoutY().setRowCount(pagingMode.getFirstSize());
getGridLayoutX().setColumnCount(tableViewAdapter.getTableColumn());
} else {
if(tableViewAdapter.getTableColumn()<=pagingMode.getFirstSize()){
pagingMode.setFirstSize(tableViewAdapter.getTableColumn());
}
itemCountCopy = pagingMode.getFirstSize() * tableViewAdapter.getTableRow();
Log.e("首次加载",pagingMode.getFirstSize()+"");
Log.e("预加载",tableViewAdapter.getTableRow()+"");
setColumnNumber(pagingMode.getFirstSize());
setRowNumber(tableViewAdapter.getTableRow());
getGridLayoutY().setRowCount(tableViewAdapter.getTableRow());
Expand Down

0 comments on commit edb6a18

Please sign in to comment.