Blogger

Delete comment from: Android-er

It's important to note that the start() method called on the AnimationDrawable cannot be called during the onCreate() method of your Activity, because the AnimationDrawable is not yet fully attached to the window. If you want to play the animation immediately, without requiring interaction, then you might want to call it from the onWindowFocusChanged() method in your Activity, which will get called when Android brings your window into focus.

-- source Drawable Animation developer.adnroid.com

Mar 22, 2015, 11:12:01 PM


Posted to Animation background, using animation-list and AnimationDrawable

Google apps
Main menu