【问题标题】:Infinite animation of imageview androidimageview android的无限动画
【发布时间】:2013-05-06 21:28:56
【问题描述】:

这只是我未解决的问题的延续,可以在这里找到:Animate 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"
android:toXDelta="0%"
android:duration="2000"/>
</set>

但我想要完成的是图像应该从左到右加速,当它们到达终点时,它们应该再次出现在活动中。

非常感谢任何帮助和建议。谢谢。

【问题讨论】:

  • android:repeatCount=infinite ?

标签: java android animation imageview


【解决方案1】:

重复动画放置:

android:repeatCount="-1"

如果你想让 imageView 从右到左重新出现:

android:repeatMode="reverse"

【讨论】:

    【解决方案2】:

    您应该使用SurfaceView 而不是移动ImageViews。

    【讨论】:

      猜你喜欢
      • 2011-01-03
      • 2011-04-24
      • 2011-01-17
      • 2011-03-24
      • 1970-01-01
      • 2023-04-04
      • 2017-07-06
      • 2014-09-09
      相关资源
      最近更新 更多