How can we detect that an animation is currently going on?  An example
would be in the calculator app when you click on the "advanced panel"
menu, a new keyboard slides (animates) into place.  As soon as you
click a key on this keyboard, it slides (animate) back out of view.
We have not found a way programmatically to detect either that an
animation is underway or that it has finished.  Another example is
when you click in an EditText view causing the soft keyboard to slide
(animate) into view and possibly push up (animate) the EditText view.

We see there are flag settings, ANIMATION_STARTED and DRAW_ANIMATION,
for View.mPrivateFlags.  But in situations where we dump the views
while we know an animation is going on, we have never seen these flags
set for the views that we think are moving as part of an animation.
Should they be?  Are there other flags or other values we should be
examining to detect animations?

Our goal, for example, is to programmatically click an EditText box
and then be able to repeatedly examine the views to find out "has the
soft keyboard finished it's animation into place?"

We've tried putting in delays, but the delay time required is a
function of the load on the computer running the phone/emulator.

-Sam


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"android-framework" group.
To post to this group, send email to android-framework@googlegroups.com
To unsubscribe from this group, send email to 
android-framework+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/android-framework?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to