0

Can someone please give the Code and 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 ?

msumaithri
  • 368
  • 1
  • 4
  • 11
  • Possible dupe? http://stackoverflow.com/questions/2221221/frequent-problem-in-android-view-error-parsing-xml-unbound-prefix – MSpeed Jan 27 '11 at 12:17

1 Answers1

3

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

Nikolay Ivanov
  • 8,897
  • 3
  • 31
  • 34