开发者

Animation - GIF

开发者 https://www.devze.com 2023-02-06 20:48 出处:网络
Can someone please give the Code an开发者_Python百科d XML file required to create an animation using .png files?

Can someone please give the Code an开发者_Python百科d XML file required to create an animation using .png files? I've tried the one given in here http://developer.android.com/reference/android/graphics/drawable/AnimationDrawable.html

But, once I type,

<animation-list android:id="selected" android:oneshot="false">
<item android:drawable="@drawable/connected01" android:duration="50" />
<item android:drawable="@drawable/connected02" android:duration="50" />
<item android:drawable="@drawable/connected03" android:duration="50" />
<item android:drawable="@drawable/connected04" android:duration="50" />
<item android:drawable="@drawable/connected05" android:duration="50" />
</animation-list>

I'm getting an error : "unbound prefix"

Can someone say how this could be done ?


I think you should add xmlns:android="http://schemas.android.com/apk/res/android" to first item of your xml

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号