http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html
<http://developer.android.com/reference/android/view/animation/Animation.AnimationListener.html>
Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Fri, May 13, 2011 at 4:27 AM, soulsurf <[email protected]>wrote:

> Hi,
> as a noob to android development I'm trying to run a couple of simple
> interpolator based animations on an app splash screen. Nothing earth
> shattering just an animation to zoom (scale) a logo in, pause and zoom
> out before proceeding to the app. The problem I'm having is detecting
> when the first animation has finished before the second starts an in
> turn when the second finishes before launching the main app.
>
>
> The code below in what I'm trying to achieve;
>
>    public void onCreate(Bundle savedInstanceState) {
>        super.onCreate(savedInstanceState);
>        setContentView(R.layout.splash);
>
>        logo = (ImageView)this.findViewById(R.id.logo);
>
>
> logo.startAnimation(AnimationUtils.loadAnimation(getBaseContext(),
> R.anim.logo_anim_in));
>        //pause when finished...
>
> logo.startAnimation(AnimationUtils.loadAnimation(getBaseContext(),
> R.anim.logo_anim_out));
>        // start main activity when finished
>
> Q: A) How can I detect when the animation has finished, that is
> perform the commented actions?
>    B) Is this the best way to go about this as I suspect it isn't?
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to