// 解决setDuration不响应问题
try {
ValueAnimator.class.getMethod("setDurationScale", float.class)
.invoke(null, 1f);
} catch (Throwable t) {
Log.e(TAG, t.getMessage());
}



ObjectAnimator oa = ObjectAnimator.ofFloat(mTv01, "translationX", 800);
oa.setDuration(8000);
oa.setRepeatCount(3);
oa.start();