I'm not sure about the coordinates thing, but if you are trying to use rotateAnimation to rotate something such that it looks like it is spinning in-place, then 0,0 are not the coordinates you want. The coordinates are a 'pivot point'; you could think of them as the 'middle' of the rotation.
If you want an object to rotate or spin without moving up/down/left/ right, then what you actually want is: RotateAnimation spin = new RotateAnimation(0.0f, 360.0f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); This gives the middle of the image as the 'pivot' so it doesn't move in an arc. Hope this helps! On Aug 11, 1:59 am, HVT <vikramhiman...@gmail.com> wrote: > Hello All, > > I'm new to Android and trying to develop an app that has loads of > animation. > Its a small game. > > Currently i have a object (image) moving around the canvas. I used > animation to animate it around the screen. > > But the problem here is i dont have the X&Y coordinates of that object > while its animating. > I want to get the coordinates of the bitmap whenever i want during the > animation. > > I think if there was some way where i can read the presentation layer > probably i could get the cordinates of the object. > > Please help me guys i'm stuck here now for like a week. > > My another problem is with rotate animation, i some how dont seem to > understand its functionality. > I have played with it for a couple of days but no luck, i'm still new > to it and dont get anything. > > The object makes big arcs even if the x,y values are 0,0 and the > object jumps around when i try to give it random values. > > Any help would be highly appreciated. > > Thanks in advance. > > HVT --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en -~----------~----~----~----~------~----~------~--~---