Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有三个图像,我想将图像从一端移动到另一端。当第一个图像超出窗口时,它应该从左侧开始。它应该基于计时器运行。
哪种类型的动画将是这种情况的完美选择?
如果每个图像都在一个 中ImageView,您可以TranslateImage在每个设置为无限重复的图像上使用一个(setRepeatCount(Animation.INFINITE), setRepeatMode(Animation.RESTART))。
ImageView
TranslateImage
(setRepeatCount(Animation.INFINITE), setRepeatMode(Animation.RESTART))