interpolator:插补器。原理:也就是通过函数曲线的形式表示运动的规律,比如: y = kx ; y =sinx;
Animation shake = AnimationUtils.loadAnimation(AddressActivity.this, R.anim.shake);
et_number.startAnimation(shake);
<translate xmlns:android="http://schemas.android.com/apk/res/android"
android:duration="1000"
android:fromXDelta="0"
android:interpolator="@anim/cycle_7" //插补器。
android:toXDelta="10" />
<cycleInterpolator xmlns:android="http://schemas.android.com/apk/res/android"
android:cycles="7" /> 循环插补器。