I know its too late but Thanks for the reply. Basically what I want is a combination of Translate and rotate animation.
I dont know if i chose the right thing as i'm very new to android. I want to animate a object on a random curve (like a freehand drawn curve which has no specific shape).So for this i chose a animation set of translate and rotate animatinos. I hope it makes sense. and also i want to capture clicks on the object while it animates. Do you think you can help me? Probably i chose the wrong approach kindly correct me if so. Actually if you have a little idea of iPhone development, this kind of animation can be achieved by making a image animate on a "Path". And this path can be created by us by supplying random values. Its a cake walk in iPhone. On Aug 11, 10:36 pm, jhoffman <[email protected]> wrote: > 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 <[email protected]> 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 > >animationto 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 rotateanimation, 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 [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 -~----------~----~----~----~------~----~------~--~---

