//清空当前选中的item for (MultipleItemEntity entity : deleteEntities) { int removePosition; final int entityPosition = entity.getField(ShopCartItemFields.POSITION); if (entityPosition <adapter.getItemCount()) { adapter.remove(entityPosition); //把后面的所有数据的position都减一 for (int i = entityPosition;i<adapter.getItemCount();i++){ int currentPosition =(int)adapter.getData().get(i).getField(ShopCartItemFields.POSITION)-1; adapter.getData().get(i).setField(ShopCartItemFields.POSITION,currentPosition); }