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. Fighting with Eclipse

Hello,

I develop my application in C++ with the NDK.

The C++ part is no problem for me.
I'm using cygwin and Visual C++ (my project is completely cross-platform and
I can test and debug everything with my desktop computer under Windows).

But, I'm really new to Eclipse. There are two annoying things I like to get
rid off.

1.) Whenever I start my application in the de{*filter*} with Eclipse I get
asked: "Select a way to debug ...". A list of options follows: "Android
Application", "Android JUnit Test", ...
=> Becuase my application is always the same type: An "Android Application"
I really want to get rid of this stupid question! How can I disable this
dialog and go straight into the "debug perspective"?

2.) Because I'm using the NDK my Android Projects contains a shared library.
If I compile a new version of the library Eclipse does not recognize that
the library has changed and does not create a new package. So, I always have
to make a modification(space, backspace) to a Java source file if I create a
new shared library.
=> How can I tell Eclipse the project depends on the shared library? If the
library changes Eclipse should create and deploy a new package.

Thanks in advance for any tips how to get rid of these annoyances!

Ralf

--

2. Eclair port for MSM7k

Hi,

I am trying to port Android Eclair on Qualcomm Msm7k chipset.  I have built
image file with limited capabilities.
I am using Linux 2.6.29. But, Linux kernel is not booting up. *Basically
kernel un-compression didn't happen.*
I just checked the code Head.S  assembly code is invoking kernel
uncompression function. But, I am not sure control reached to the Head.S.
I am looking for info steps involved in Linux kernel boot up on MSM7k.

Any pointers will be helpful.

Thanks,
Mahantesh

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

3. capturing touch events in status bar

4. GPS Can't get onLocationChanged to hit

5. Persisting alarms

6. .nomodia

7. eclipse linkedResources - linked layout xml is neither included in the apk nor generated