講的那么快給自己聽嗎,還不注釋,不會(huì)寫的人誰(shuí)看的懂呢,你這完全是為了完成任務(wù),一點(diǎn)責(zé)任心都沒有,
2017-06-29
其實(shí)只需要一行代碼就可以實(shí)現(xiàn)滾動(dòng):
lp.leftMargin = (int) (position * mScreen1_3 + positionOffset * mScreen1_3);
lp.leftMargin = (int) (position * mScreen1_3 + positionOffset * mScreen1_3);
2017-06-15
最新回答 / 慕設(shè)計(jì)8169207
從左往右滑動(dòng)沒有問(wèn)題,從右往左滑的話,需要lp.leftMargin = (int) (position * mScreen1_3 + (positionOffset-1) * mScreen1_3);?
2017-06-15