Thanks for your comment  Mark.

- Do not use TranslateAnimation, but instead switch to the newer 
ViewPropertyAnimator framework (and NineOldAndroids for a backport), 
                  
      *  I can't use ViewPropertyAnimator framework because i need to 
support for below 3.0 API level.*


- 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 

*I Could not understand clearly.Can you please explain more about this 
idea?Dummy code would be great as i am new to animations.*

On Tuesday, 22 January 2013 18:08:54 UTC+5:30, Mark Murphy (a Commons Guy) 
wrote:
>
> 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 <[email protected] <javascript:>> 
> 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 
> > [email protected]<javascript:> 
> > To unsubscribe from this group, send email to 
> > [email protected] <javascript:> 
> > 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 [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