在沒(méi)有設(shè)置header和footer的背景顏色的時(shí)候役纹,直接設(shè)置content的背景色就可以馅笙。我的這個(gè)項(xiàng)目使用到了header并且設(shè)置了header的背景色,直接設(shè)置content的背景色,顏色有誤,如圖
誤差圖????????????????????????
headerView和contentView的背景色是一樣的牡整,但是顯示卻有色差。最后溺拱,發(fā)現(xiàn)是因?yàn)閔eaderView/footerView設(shè)置了背景色的原因逃贝,把headerView的背景色設(shè)置為clearColor或者不設(shè)置谣辞,顏色就正常了,如圖