Re: [android-developers] Reuse of AlphaAnimation object

2011-12-09 Thread Mark Murphy
I would agree that reset() ought to reset it completely -- I was just pointing out a workaround. Glad it's working! On Fri, Dec 9, 2011 at 11:14 AM, Royston wrote: > Mark, > Again thanks for the quick reply. Making use of setStartTime does indeed > resolve this. I am not sure I fully understand t

Re: [android-developers] Reuse of AlphaAnimation object

2011-12-09 Thread Royston
Mark, Again thanks for the quick reply. Making use of setStartTime does indeed resolve this. I am not sure I fully understand the design decisions in play here but I am well past my sell by date so will live with what we have. Roy -- You received this message because you are subscribed to the

Re: [android-developers] Reuse of AlphaAnimation object

2011-12-07 Thread Mark Murphy
mEnded is reset to false by a call to setStartTime(), it would appear. On Wed, Dec 7, 2011 at 8:52 AM, Royston wrote: > I have been endeavouring to reuse AlphaAnimation objects in a pool so as to > limit memory allocation. It would appear that each animation even after > reset will only call onAn

[android-developers] Reuse of AlphaAnimation object

2011-12-07 Thread Royston
I have been endeavouring to reuse AlphaAnimation objects in a pool so as to limit memory allocation. It would appear that each animation even after reset will only call onAnimationEnd the first time it is used. Looking at the code this would appear to be because the field boolean "mEnded" is not