Re: AnimationSet - Scaling and moving at the same time

by Hari Edo » Mon, 17 Jan 2011 10:52:55 GMT

Sponsored Links
 It seems like whenever a <scale> is done as a part of an animset,
the starting or ending scale is computed incorrectly, as the
of the ending scale.  I think they're calculating the anti-transform
each element, and doing it badly, messing up compound animations.

Thanks for posting good YouTube examples of the phenomenon.
Now post those to the bug tracker!


AnimationSet - Scaling and moving at the same time

by Oded O. » Wed, 19 Jan 2011 09:44:56 GMT

 I'm building a new layout engine (and hopefully open-source it once I'm 
I need to scale and move a "tile" from one position on the screen to 

When I only move, the coordinates seems to be OK (the top-left corner of the 
"tile" is positioned exactly where it should be) 

When I only scale, the result size of the tile seems to be OK, and the 
tile's new size is exactly what it should be. 

But when I combine these two animation to a single AnimationSet, something 
goes wrong, the top-left corner of the tile is off-setted to an unknown 
destination (couldn't figure out the logic behind the new position) 

Has anyone came across this sort of issue?

It's important that the two animation would happen at the same time (I don't 
want to move, and than scale, or vice-versa).




Sponsored Links

Re: AnimationSet - Scaling and moving at the same time

by Oded O. » Wed, 19 Jan 2011 09:45:03 GMT

 The strange thing is, that I scale the view and set the top-left corner as 
the pivot point of the scale... while the transform (moving) of the views is 
also set-up using the top-left corner as the anchor... so logically, 
we shouldn't have encountered any issue...

How (and where) do I post a new bug?
Can I post a link to this thread over there?

And to conclude... If the animation is not possible at the moment, I'll 
refactor the code and set the transformation between layouts without 
When I'm done' I'll re-post with a link to download the full code.

Thanks again.



Other Threads

1. How to get list of all the intents on the phone

Hi Guys,

I just have a query if it is possible to get the list of all the
intents available on the device.

Also is it possible to get the list of application on the device?


2. Query on next list of countires for paid app support

Hi Guys,

Does someone have any information on the next list of countries for
which google is going to add paid app support for developers?


3. how to make a cust om view shown on home screen as AppWi dgeté”›

4. G1 & BT headset call button

5. Android Loading listview items from service results in hang

6. How to save an xml file?

7. How to send SMS between two emulators (SDK 1.5 or older)