tabline.setTranslationX(arg2 / 3) 直接搞定
switch (arg0) {
case 0:
tabline.setTranslationX(arg2 / 3);
break;
case 1:
tabline.setTranslationX(tabline_Width + arg2 / 3);
break;
case 2:
tabline.setTranslationX(tabline_Width * 2 + arg2 / 3);
break;
}
switch (arg0) {
case 0:
tabline.setTranslationX(arg2 / 3);
break;
case 1:
tabline.setTranslationX(tabline_Width + arg2 / 3);
break;
case 2:
tabline.setTranslationX(tabline_Width * 2 + arg2 / 3);
break;
}
2015-02-02
举报