Well, I can't claim to be the guru you are looking for, but I can say
this much: I see the code to create the layout, supply it with In and
Out animation, but not to display the animation itself.

I would study the Google tutorial on "Tween Animation" (or the
immediately following section on Frame Animation) at
http://developer.android.com/guide/topics/graphics/2d-graphics.html#tween-animation
to figure out what went wrong.

On Jan 23, 3:08 pm, Duey Oxburger <[email protected]> wrote:
> Lads,
>
> When my game fires up I'm trying to fade from my company logo to my
> splash page... basically fade from one image to the other.  I'm
> trying
> to use ViewAnimator to do this, but I'm confused about how to
> properly
> hook this up to my main.xml file.  I've enclosed my main.xml file and
> my .java file as well.  If some of you more experienced guru's have a
> moment and wouldn't mind having a quick peak, it'd be much
> appreciated!:
>
> -------------------------------
> main.xml:
>
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>     android:orientation="vertical"
>     android:layout_width="fill_parent"
>     android:layout_height="fill_parent"
>     >
>
> <ViewAnimator
>         android:layout_width="wrap_content"
>     android:layout_height="wrap_content"
>         android:inAnimation="@drawable/ti_splash_logo"
> />
> <ViewAnimator
>         android:layout_width="wrap_content"
>     android:layout_height="wrap_content"
>         android:outAnimation="@drawable/ti_presents"
> />
>
> </LinearLayout>
> -----------------------------------
>
> .java:
>
> package com.tybon.fe;
>
> import android.app.Activity;
> import android.content.Context;
> import android.os.Bundle;
> import android.view.View;
> import android.widget.ViewAnimator;
> import android.widget.FrameLayout;
> import android.view.ViewGroup;
> import android.widget.ViewSwitcher.ViewFactory ;
>
> public class AMBUSH extends Activity {
>     /** Called when the activity is first created. */
>     @Override
>     public void onCreate(Bundle savedInstanceState) {
>         super.onCreate(savedInstanceState);
>         setContentView(R.layout.main);
>     }
>
> }
>
> --------------------------------------
>
> thx,
>
> D

-- 
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.

NEW! Try asking and tagging your question on Stack Overflow at
http://stackoverflow.com/questions/tagged/android

To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en

Reply via email to