Getting Animation Drawables to actually Animate

Quickly share your Android Code Snippets here...


Postby usharingan » Thu Jan 03, 2013 10:02 pm

Shanytc wrote:Hey, I got it to work just fine,
however, the animation is displayed on the top left (0,0) side of the screen,
how can I change the position of the ImageView position on the screen?
I would like to move the animation to the middle of the screen

Could you like post your code or something? Mine looks just as most people on this pae describe (but without the Timer). I have the setContentView() before the findById() Parts and even so the following line throws a NullPointerException:
img.setBackgroundResource(R.drawable.game_over); /*game_over is the xml file which contains my animation drawable*/
Has anybody an idea what I'm doing wrong here? ://
Once Poster
Once Poster
Posts: 1
Joined: Thu Jan 03, 2013 9:56 pm


Return to Code Snippets for Android

Who is online

Users browsing this forum: Google [Bot] and 1 guest