[android-developers] Re: Controlling z-order in ImageSwitcher
Sorry, a correction: the real problem seems to be that the "scale"
animation is always drawn on top of the "translate" animation. In
other words, if I set the "zoom out" as my outAnimation, then it will
draw on top. It seems like zAdjustment should be able to fix this, but
so far it hasn't.
On Jan 11, 3:04 pm, cirion <cir...@gmail.com> wrote:
> Hi,
>
> I'm trying to create an effect where one image slides off the screen
> to the left while another zooms in from the background. I have this
> mostly working with an ImageSwitcher that has an inAnimation and
> outAnimation. However, the "in" image seems to always draw on top of
> the "out" image, instead of seeming to come from behind like I want.
>
> I've tried:
> * Setting android:zAdjustment="top" to my slide_left anim (both in the
> <set> and <scale> elements)
> * Setting android:zAdjustment="bottom" to my zoom_in anim
> * Calling imageSwitcher.getCurrentView().bringToFront() right before
> my call to imageSwitcher.setCurrentResource(). This seems to make the
> "out" image invisible
>
> Does anyone know the right way to adjust z-order within an
> ImageSwitcher? I'd like to stick with ImageSwitcher if possible since
> it has otherwise been perfect.
>
> Thanks!
--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home