Re: [android-developers] Run instructions at the end of six animations played together
On Sun, Nov 14, 2010 at 9:52 AM, gontran <geoffroydecorbiac@gmail.com> wrote:
> I need to run six animations simultaneously (each animation simulates
> a roll of dice, each dice is a custom text view) and at the end of
> those animations, I need to get back the number of each roll. As each
> animation changes the number of each dice five times (to simulate the
> roll), I want to wait that each animation has ended to calculate the
> sum of each roll.
Why not pre-compute the intended states of each die before starting
the animation? There is nothing magical about waiting to do your
random number generation. Figure it all out in advance.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android 2.2 Programming Books: http://commonsware.com/books
--
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