android - Why would changing the StrokeType of a GestureOverlayView affect the standard behaviour of the view? -


I recently introduced multi-stroke gestures in my application. This is priority so I dynamically set the strokect in the activity. OnCreate I have come to know that if you set the stroke type dynamically, then it changes the behavior of Jester Overlayview in the following manner.

The general behavior is that you attract a gesture and it remains on the screen ready. When you change the stroke type dynamically, any warning taken on the screen immediately disappears after removing the on-gesture event. I sample made reload Jescrbilder application and confirm that if you add appear went second row there is one problem:

  Gesture Overview overlay = (pointing See Ovrlewu) findViewById ( R.id.gestures_overlay); Overlay.setGestureStrokeType (GestureOverlayView.GESTURE_STROKE_TYPE_SINGLE); Overlay.addOnGestureListener (new gesturesprosessor ()); }  

Is this a bug in the Android gesture library and does anyone know an alternate solution?

Note that this is an HTC Magic so it may also be a handset issue.

You can still set the stroke of the gesture overlay XML file.

gesture set disappears quickly because Fade offset lower number if you take it a long time before it disappears the set yourself, as above indicated After the amount of time, OnGestureEvent or OnGesturePerformedListener is called on the basis on which you are using.


Comments