I've been having the same problem and I finally found the solution.  If you 
look at the source code for GestureOverlayView, you'll notice a boolean test 
for mHandleGestureActions at line 559 (and others) that makes a call to 
[private void] setCurrentColor when drawing the gesture.  Unfortunately 
mHandleGestureActions is only set when you use the 
OnGesturePerformedListener listener.  

This is a total hack; but it works:

Create a stub view that implements the OnGesturePerformedListener and add 
that to your overlay's list of OnGesturePerformedListeners.  You don't have 
to
do anything with the listener; but it needs to be a separate view from the 
one you're using as the REAL listener (or you'll crash your app).  Then add 
your
OnGesturingListener or OnGestureListener view that does the REAL work.

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