I have an animation, from which I'd like to get a transform. Im not letting the animation "play" by itself, I just want to get the current transform. The reason for this is that I want to animate a View as I move my finger across the screen. So I enabled static transformations for children and override the getChildStaticTransformation class. In this method I'd like to extract the transform from the animation, where the "time" depends on how much I've moved my finger.
For instance, I do something like this: Animation ani = new TranslateAnimation(0, 100, 0, 0); ani.setDuration(1000); ani.setInterpolator(new LinearInterpolator()); ani.startNow(); Then I try to get the animation by calloing ani.getTransformation(ani.getStartTime() + 500, transform); But all I get is the identity matrix (instead it should be the matrix representing translation of 50 units). What is wrong? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---

