You can see the examples of ViewFlipper or ViewSwitcher in ApiDemos. On Jan 24, 5:46 am, Duey Oxburger <cg-art...@hotmail.com> 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 Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en