Monday, August 22, 2011

[android-developers] Right way to animate children inside a viewgroup?

I am building a custom viewgroup that arranges a bunch of children in a particular layout. On a particular trigger (lets say an external button press), The children animate to new positions. The way I tried doing it was by starting a Timer and on each timer update, computing new positions and then calling requestLayout(). Is this the right way? I imagine this could be inefficient. 
Any ideas on what the right steps are to do a custom rearragement of child views?

-arpit

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

No comments:

Post a Comment