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
精彩评论