That is how animations are supposed to work -- they are just a change in visuals. You should typically move your view to its new position as part of a layout, and at that point supply an animation to animate it from the old to new position.
On Wed, Sep 16, 2009 at 3:20 AM, Romano <[email protected]> wrote: > > Hi All, > I need your help to solve an issue with the Animations in Android. > > I have a TextView on which I set an onClickListener. > > I assign a Traslate Animation to this TextView, so that it moves from > position A to position B in the screen. > > The Animation works as expected. > > My problem is due to the fact that it does not matter in which > position the TextView is during its movement: in order to trigger the > "click event" I need to touch the screen only in the starting position > (A). > > EXAMPLE: > Imagine that the TextView is in the bottom left corner and it starts > moving toward the top right one. > Imagine that the TextView is now in the center ofthe screen. > If I touch the TextView where my eyes "see" it (= in the center of the > screen), nothing happens. > Else if I touch the starting point at the bottom left of the screen > (which is a blank place because the TextView has moved from there), > the event is triggered. > > Could someone help me? > Best regards > > > -- Dianne Hackborn Android framework engineer [email protected] Note: please don't send private questions to me, as I don't have time to provide private support, and so won't reply to such e-mails. All such questions should be posted on public forums, where I and others can see and answer them. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

