有木有人研究过Android版本的Talking Tom实现?
现在有个问题很是疑惑,请大家知道的帮忙解答。
Frame Animation 大部分都是通过 ImageView.setBackgroundResource(R.anim.myframeanimation); 实现
res/anim/myframeanimation.xml <?xml version="1.0" encoding="utf-8"?> <animation-list xmlns:android="http://schemas.android.com/apk/res/android" androidneshot="false"> <item android:drawable="@drawable/rkof" android:duration="200" /> <item android:drawable="@drawable/qkof" android:duration="200" /> </animation-list>
这里的图片文件都是放在 res/drawable 目录下,通过XML可以直接取到,
但是Talking Tom的所有表情动作图片都是放在 assest/animations 目录下,请问有谁知道怎么取到这里的图片?
我想肯定是通过代码去取的?那Frame Animation通过代码怎么实现呢?
或者还是通过什么其他的方式能在res/anim/myframeanimation.xml里取到assets/animations目录下的图片呢?
请高人指点,谢谢!