This is expected behavior. Either:

- Do not use TranslateAnimation, but instead switch to the newer
ViewPropertyAnimator framework (and NineOldAndroids for a backport),
or

- Do not bother with setFillAfter(true), but instead attach an
AnimationListener that will adjust the layout so the widget is in its
new position when the animation ends

On Tue, Jan 22, 2013 at 7:27 AM, Ansh <yourans...@gmail.com> wrote:
>  Hi guys , i am facing a weird problem.I have a layout and there is a button
> inside that layout.On clicking of the button i need to translate that layout
> towards up say for example 30%.I am able to achieve this but when animation
> ends i loose click event on the button which a very weird and known issue to
> all the forums and stack overflow.I searched every where but could not find
> a solution.I have read that When layout is animated it looks that it has
> been animated but it is View resides at there original position .Then how
> can i perform onClick of a button which is now placed to the new postion?
>
> Thanks
>
> --
> 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



-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 4.5 Available!

-- 
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

Reply via email to