gpt4 book ai didi

android - Animation_list must be declared 错误

转载 作者:行者123 更新时间:2023-11-29 20:53:03 25 4
gpt4 key购买 nike

已阅读Drawable Animation , Animation Resource ,以及其他 stackoverflow 问题,我认为将其放入可绘制文件中是创建 animation_list 的正确方法。

<?xml version="1.0" encoding="utf-8"?> 
<animation_list xmlns:android="http://schemas.android.com/apk/res/android"
android:oneshot="true">
<item android:drawable="@drawable/james_walking_1" android:duration="200"/>
<item android:drawable="@drawable/james_walking_2" android:duration="200"/>
<item android:drawable="@drawable/james_walking_3" android:duration="200"/>
<item android:drawable="@drawable/james_walking_4" android:duration="200"/>
</animation_list>

但是,animation_list 是红色的并且“必须声明”。我不知道出了什么问题。提前致谢

最佳答案

Use animation-list ,而不是 animation_list

关于android - Animation_list must be declared 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28565205/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com