[android-developers] Animation not displaying in onBackPressed

2011-08-11 Thread Stefan Alder
I'm trying to slide a custom modal view off the screen with a translation animation when the user presses the hardware back button. I call the panel.setAnimation method within onBackPressed, but while the method executes, the animation is not visible. Only until I touch the display does it

Re: [android-developers] Animation not displaying in onBackPressed

2011-08-11 Thread Appaholics
Try calling invalidate() on the view you are using so that onDraw is called again. Thanks On Thu, Aug 11, 2011 at 12:17 PM, Stefan Alder twigbra...@gmail.com wrote: I'm trying to slide a custom modal view off the screen with a translation animation when the user presses the hardware back

Re: [android-developers] Animation not displaying in onBackPressed

2011-08-11 Thread Stefan Alder
That was it. Thanks. On Thu, Aug 11, 2011 at 8:01 AM, Appaholics raghavs...@appaholics.in wrote: Try calling invalidate() on the view you are using so that onDraw is called again. Thanks On Thu, Aug 11, 2011 at 12:17 PM, Stefan Alder twigbra...@gmail.com wrote: I'm trying to slide a custom