首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >未获得正确的逐帧动画

未获得正确的逐帧动画
EN

Stack Overflow用户
提问于 2014-03-27 10:39:36
回答 1查看 43关注 0票数 0

这是我的代码,resultpage1和resultpage2是我的.jpg file.This是我的背景图像,我需要这个是动画.The图像充满了心,我需要从top.Background图像中掉下来的心是成功的,但动画不是proper.The当掉下来的时候心在颤动而不是慢慢地掉下来我需要心慢慢地掉下来而不是shaking.Iam新的android.Please帮助

代码语言:javascript
复制
   <?xml version="1.0" encoding="utf-8"?>
  <animation-list xmlns:android="http://schemas.android.com/apk/res/android" >
  <item
    android:drawable="@drawable/resultpage1"
    android:duration="50"/>
    <item
    android:drawable="@drawable/resultpage2"
    android:duration="50"/>
    <item
    android:drawable="@drawable/resultpage3"
    android:duration="50"/>
    <item
    android:drawable="@drawable/resultpage4"
    android:duration="50"/>
    <item
    android:drawable="@drawable/resultpage5"
    android:duration="50"/>
   </animation-list>
EN

回答 1

Stack Overflow用户

发布于 2014-03-27 11:02:49

为此,您应该使用优化的png图像。在大多数情况下,您还需要两个以上的图像。如果仅使用两个图像,则动画几乎会有闪光效果。下面是关于不同xml动画的更多信息

http://www.androidhive.info/2013/06/android-working-with-xml-animations/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/22677252

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档