[android-developers] Animating the background of a LinearLayout

2010-04-27 Thread Marc Poppleton
Hello,

Is there a way of being notified when a TransitionDrawable has
finished its transition?
I'm looking for a way to animate the background of a LinearLayout,
switching it back and forth between two images thus creating a
pulsating effect. TransitionDrawable works nicely, butonce. I
tried stacking several 'item' in the XML defining the transition, but
no luck. It justs fades from item 1 to item 2 and sits there.
I'm wondering if I shouldn't implement a custom Animation.

Any ideas?

Thanks :)

FYI : target platform is 1.5

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


Re: [android-developers] Animating the background of a LinearLayout

2010-04-27 Thread skink


Marc Poppleton wrote:
 Hello,

 Is there a way of being notified when a TransitionDrawable has
 finished its transition?
 I'm looking for a way to animate the background of a LinearLayout,
 switching it back and forth between two images thus creating a
 pulsating effect. TransitionDrawable works nicely, butonce. I
 tried stacking several 'item' in the XML defining the transition, but
 no luck. It justs fades from item 1 to item 2 and sits there.
yes, TransitionDrawable fades in/out two Drawables and you cannot make
it work in repeat mode

 I'm wondering if I shouldn't implement a custom Animation.
i would implement custom Drawable instead


 Any ideas?

 Thanks :)

 FYI : target platform is 1.5


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