item间距增大的原因是重复addItemDecoration了,所以addItemDecoration时判断一下(viewHolder.rvGuessItem为recycleView)
if(viewHolder.rvGuessItem.getTag(viewHolder.rvGuessItem.getId())!=null&&viewHolder.rvGuessItem.getTag(viewHolder.rvGuessItem.getId()).equals("addedDecoration")){
}else{
viewHolder.rvGuessItem.addItemDecoration(newLinerItemDecoration(10,0));//设置item间距
viewHolder.rvGuessItem.setTag(viewHolder.rvGuessItem.getId(),"addedDecoration");
}