任何人都可以请告诉我如何暂停并重新启动Android中的动画。如何暂停并重新启动Android中的动画?
动画XML是:
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:shareInterpolator="false">
<translate
android:fromXDelta="500%" android:toXDelta="0%"
android:fromYDelta="0%" android:toYDelta="0%"
android:duration="10000"
android:fillAfter="true"
android:repeatCount="infinite"/>
</set>
而且代码:
Animation am=AnimationUtils.loadAnimation(this, R.anim.note);
music1.startAnimation(am);
请教[此](http://stackoverflow.com/questions/10006736/pause-and-resume-translate-animation)。它有助于me.Hope它帮助你。 – kgandroid