最新回答 / qq_靛藍小孩_0
想要滑動的話,就的重寫view的ontouchEvent事件,然后根據(jù)滑動的多少來調(diào)用view的scrollBy()方法,就可以滑動了
2016-04-22
已采納回答 / 這個殺手不太累
對于第一個問題,可以讓三角形滑動到最后一個tab再執(zhí)行scrollTo()方法,在原有代碼scroll()方法上修改為:? ?public void scroll(int position, float positionOffset) { ? ?int tabWidth = getWidth() / mTabVisibleCount; ? ?...
2016-04-14
已采納回答 / 不知為不知0
看你的initTriangle()函數(shù),void moveTo(float x, float y)?Set the begining of the next contour to the point (x,y).這個只是起始點要用到,后面畫線用void lineTo(float x, float y)函數(shù):Add a line from the last point to the specified point (x, y).
2016-04-01