Java imageview android的无限动画
这只是我未解决问题的继续,可以在这里找到: 现在,我设法使用Java imageview android的无限动画,java,android,animation,imageview,Java,Android,Animation,Imageview,这只是我未解决问题的继续,可以在这里找到: 现在,我设法使用 <?xml version="1.0" encoding="utf-8"?> <set xmlns:android="http://schemas.android.com/apk/res/android" android:interpolator="@android:anim/accelerate_interpolator"> <translate android:fromXDelta="-100%p"
<?xml version="1.0" encoding="utf-8"?>
<set xmlns:android="http://schemas.android.com/apk/res/android"
android:interpolator="@android:anim/accelerate_interpolator">
<translate
android:fromXDelta="-100%p"
android:toXDelta="0%"
android:duration="2000"/>
</set>
但我想完成的是图像应该从左到右加速,当它们到达终点时,它们应该再次出现在活动中
非常感谢您的帮助和建议。谢谢。您应该使用
SurfaceView
而不是移动imageview
您应该使用SurfaceView
而不是移动imageview
来重复动画放置:
android:repeatCount="-1"
如果要从右向左重新显示imageView,请放置:
android:repeatMode="reverse"
要重复动画,请执行以下操作:
android:repeatCount="-1"
如果要从右向左重新显示imageView,请放置:
android:repeatMode="reverse"
android:repeatCount=infinite
?android:repeatCount=infinite
?