i am trying to get a slide down animation to work, and it seems to
work except that it starts with a big black screen instead of the
screen that was there.

so I have layout1 and layout2.

when I start the animation using ViewFlipper.showNext it puts a big
black background over layout1, and then slides in layout2.  if I use
ViewFlipper.startFlipping() it slides in layout2 out as it is sliding
in layout1 -- which is what I would expect.

My slide_down.xml looks like this:
    <?xml version="1.0" encoding="utf-8"?>
    <set xmlns:android="http://schemas.android.com/apk/res/android";>
        <translate android:fromYDelta="0"
                   android:toYDelta="100%"
                   android:duration="4000"
                   android:detachWallpaper="true"/>
    </set>

My java code looks like this:
    ViewFlipper vf = (ViewFlipper) findViewById(R.id.DropDownList);
    vf.setAnimation(AnimationUtils.loadAnimation(this,
R.anim.slide_down));
    vf.showNext();                or
vf.startFlipping();

tia.

-- 
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