Subclassing Animation won't help you unfortunately. It would be best for you to implement the animation yourself.
On Fri, Jul 30, 2010 at 11:18 AM, jsera <gall.blad...@gmail.com> wrote: > Hi, I'd like to subclass Animation in order to get an animation that > changes the clipRect of the canvas passed to a particular custom view > instead of messing with the matrix of that canvas. > > The reason for this, is that I want to animate a partially obscured > bitmap up to display it fully. > > So, say I have a bitmap 100x100 px, and at the start of the animation, > I want to start out displaying the top 100x50px of it, so the clipRect > will be of the size 100x50. > > I want to move the clipRect 50px up, and add 50 px to it's size, but > it looks like both the scale and translate animations just change the > matrix, so I wind up displaying the same 100x50px area, but stretched > to fit in in whatever space. > > Anyway, what's the best way of accomplishing this? > > -- > 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 > -- Romain Guy Android framework engineer romain...@android.com Note: please don't send private questions to me, as I don't have time to provide private support. All such questions should be posted on public forums, where I and others can see and answer them -- 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