Hello ,

There is a problem when using RotateAnimation in android 4.0.
On all pre  android 4.0 versions it works ok.

The RotateAnimation is good on a android device with a HVGA screen.

The RotateAnimation is not good, the center point is shifted, on devices
with a other screen size.

This is my code:

*final RotateAnimation animRotate =*
* new RotateAnimation(0.0f, 360.0f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.5f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.5f);*


I can make the RotateAnimation working correctly for WVGA, i have to change
0.5f to 0.3333f:

*final RotateAnimation animRotate =*
* new RotateAnimation(0.0f, 360.0f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.3333f,*
* RotateAnimation.RELATIVE_TO_SELF , 0.3333f);*

I think it has something to do with scaling but can not find anywhere what
the solution is.

Does anyone know of this problem, is it a bug?

Faust

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to