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
reciprocal
of the ending scale.  I think they're calculating the anti-transform
for
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 
done)
I need to scale and move a "tile" from one position on the screen to 
another.

When I only move, the coordinates seems to be OK (the top-left corner of the 
"tile" is positioned exactly where it should be)
 http://www.youtube.com/watch?v=MazxKnh83us 

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.
 http://www.youtube.com/watch?v=bG3j0GdqbTI 

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)
 http://www.youtube.com/watch?v=JKn3jaATtww 

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).

Thanks!

Oded

-- 


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 
animation.
When I'm done' I'll re-post with a link to download the full code.

Thanks again.

Oded

-- 



Other Threads

1. Is Head First Android Book exists?

Hi All,

I am a big fan of Head First Series. so is there any Head First
Android Book exists?
If not please let me know any similar kind of book for a begineer.

Thanks,
Sohan Badaya

-- 

2. Option Menu to choose before loading widget

Hi all,
I need to know how to give an interface to the user to choose an
option before the widget is loaded. in other words, when user selects
the widget on the screen, there should be 3 options which pop up for
the user to select, once selected the application will navigate to
corresponding intent depending upon the option.

Know, please let me know how to get these options on the screen when
the widget is loaded

Thanks in advance
Nagaraj Padmanabha Rao

-- 

3. Android Appwidget resolveUri failed on bad bitmap uri

4. Closing the Application Window Programatically

5. Options for widget loading

6. Unable to retrieve the GIVEN_NAME or FAMILY_NAME from database

7. how to use AT Commands in android ril (Linux)