xml:
<set xmlns:android="http://schemas.android.com/apk/res/android">
<scale android:fromXScale="1.0" android:toXScale=".5"
android:fromYScale="1.0" android:toYScale=".5"
android:pivotX="50%p" android:pivotY="50%p"
android:duration="2000" />
</set>
Activity里的:
Animation animation = AnimationUtils.loadAnimation(MainActivity.this, R.anim.alphne);
mainTextView.startAnimation(animation);
animation.setAnimationListener(new Animation.AnimationListener() {。。。。。。。}