Sorry for the very loud title, but when I try to code a frame-by-frame animation in Eclipse, It gives me a bug. I found something on the internet that says they screwed up in the sdk tutorial documentation but I cannot help but wonder what android:id="selected" means or what should be put in the quotations instead. (I am new to this if you couldn't already tell. :( Sorry.)
Here's the link (delete the space between the h and the t):
h ttp://code.google.com/p/android/issues/detail?id=79
Also, can somebody explain the last part of the frame animation tutorial to me? http://developer.android.com/guide/topics/resources/animation-resource.html#Frame Do you put another code in the filename.Java, and if so, where do you put it? I cannot understand where to put the second code that is not XML... And I think I need to know what the code below is and where it should go...
ImageView fileimage = (ImageView) findViewById
(R.id.file_image);fileimage.setBackgroundResource
(R.drawable.file_image2);fileAnimation = (AnimationDrawable)
fileimage.getBackground();fileAnimation.start();
But here is the XML code I used anyway:
<animation-list android:id="selected" android:oneshot="false">
<item android:drawable="@drawable/filename" android:duration="200" />
<item android:drawable="@drawable/filename2" android:duration="200" />
</animation-list>
Should anything be removed or added from that? I don't know what else to do, because I need to start the animation and have the code for that (1st one) but I don't know where it goes, or if I need another code along with it! Please help?