Thursday, August 11, 2011

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

That was it. Thanks.

On Thu, Aug 11, 2011 at 8:01 AM, Appaholics <raghavsood@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 <twigbranch@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 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 redraw to the final state (with no animation).  I
>> tried running the animation method via runOnUIThread, but that made no
>> difference.   Any idea why the animation is not being displayed?
>>
>> If I use a custom button on the screen to call the animation, it works
>> properly.
>>
>> 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+unsubscribe@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/android-developers?hl=en
>
>
> --
> --------------------
> Raghav Sood
> CEO/Founder/Owner/Dictator/Tyrant at Appaholics (Basically all titles
> required to have complete control)
> http://www.raghavsood.com/
> https://market.android.com/developer?pub=Appaholics
> http://www.appaholics.in/
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment