[android-developers] Re: What is best method for an animation worker thread?

2010-06-13 Thread skink
On Jun 13, 2:51 am, droidful Any further suggestions? why do you use AsyncTask for animations? why not something that extends Animation? pskink -- 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] Re: What is best method for an animation worker thread?

2010-06-13 Thread droidful
Hi pskink. I initially used Animations by setting dynamically configured animations on the views I wanted to move around and then starting the animations. The problem I found was that in the case where part of the view is outside the display area as it animates back into the display area the part

[android-developers] Re: What is best method for an animation worker thread?

2010-06-13 Thread droidful
Ok, looks like I might be being a noob. I might be able to do something with getTransformation. Ill look into it. -- 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

[android-developers] Re: What is best method for an animation worker thread?

2010-06-13 Thread skink
droidful wrote: Ok, looks like I might be being a noob. I might be able to do something with getTransformation. Ill look into it. yes, this is a method where you implement your animation, you can change supplied Transformation (matrix/alpha) or whatever else you want pskink -- You received

[android-developers] Re: What is best method for an animation worker thread?

2010-06-13 Thread droidful
Thanks skink, works a treat. I extended Animation and applied my animations in the applyTransformation method (without calling the super). Basically the code I already had just slotted straight in. Cheers! -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: What is best method for an animation worker thread?

2010-06-13 Thread skink
On Jun 13, 6:15 am, droidful austral...@gmail.com wrote: Thanks skink, works a treat. I extended Animation and applied my animations in the applyTransformation method (without calling the super). Basically the code I already had just slotted straight in. Cheers! yes, applyTransformation,

Re: [android-developers] Re: What is best method for an animation worker thread?

2010-06-13 Thread Australuke
Well i overrode getTransformation to handle completion and cancellation so no probs! Interestingly the UI now updates much smoother, i must check the android source to see what they are doing. Anyway, yeah, AsyncTask just didnt feel right, thanks again for pointing me in the right direction --

[android-developers] Re: What is best method for an animation worker thread?

2010-06-12 Thread droidful
I changed the logic of the asyncTask to be based on time rather than point position, at least now I dont have a sleep but it would probably hammer the UI thread. But I guess thats what I want to get smooth animation. Should this be in the beginners thread? Anyway here is the new pseudo-code: