其实只需要一行代码就可以实现滚动:
lp.leftMargin = (int) (position * mScreen1_3 + positionOffset * mScreen1_3);
lp.leftMargin = (int) (position * mScreen1_3 + positionOffset * mScreen1_3);
2017-06-15
最新回答 / 慕设计8169207
从左往右滑动没有问题,从右往左滑的话,需要lp.leftMargin = (int) (position * mScreen1_3 + (positionOffset-1) * mScreen1_3);
2017-06-15