已采纳回答 / 这个杀手不太累
对于第一个问题,可以让三角形滑动到最后一个tab再执行scrollTo()方法,在原有代码scroll()方法上修改为: public void scroll(int position, float positionOffset) { int tabWidth = getWidth() / mTabVisibleCount; ...
2016-04-14
已采纳回答 / 不知为不知0
看你的initTriangle()函数,void moveTo(float x, float y) Set the begining of the next contour to the point (x,y).这个只是起始点要用到,后面画线用void lineTo(float x, float y)函数:Add a line from the last point to the specified point (x, y).
2016-04-01