ImageView的Android的无限动画 [英] Infinite animation of imageview android
本文介绍了ImageView的Android的无限动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这只是我的悬而未决的问题的延续,它可以在这里找到:动画的ImageView
This is just a continuation of my unsolved question which can be found here: Animate ImageView
现在,我设法让imageviews使用移动
For now, I managed to make the imageviews move using
<?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>
但我想做到的是图像应该从左至右加速,当他们到达终点时,应在活动又重新出现。
But what I want to accomplish is the images should accelerate from left to right and when they reach the end, they should re-appear on the activity again.
任何帮助和建议,是真正的AP preciated。谢谢你。
Any help and suggestion are truly appreciated. Thanks.
推荐答案
要重复动画放:
android:repeatCount="-1"
如果你想的ImageView从右到左把再现:
If you wanna imageView reappear from right to left put:
android:repeatMode="reverse"
这篇关于ImageView的Android的无限动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文