Hello everybody. when I am in the development of android application about gesture,I encountered a problem.
When I use GestureOverlay's function setGestureColor to change the gesture's color,but that does not work? I can only set the xml attributes "android: gestureColor" to change the gesture's stroke color!
This is my code:
GestureOverlayView overlay=(GestureOverlayView)findViewById(R.id.gestures_overlay);
overlay.setBackgroundColor(Color.MAGENTA);//It works!!!
overlay.setGestureColor(Color.BLUE);//Not work
overlay.setGestureStrokeWidth(12);//It works
Am I wrong? Because I want to dynamically change the color of gesture stroke, please help me, thanks a lot.
When I use GestureOverlay's function setGestureColor to change the gesture's color,but that does not work? I can only set the xml attributes "android: gestureColor" to change the gesture's stroke color!
This is my code:
GestureOverlayView overlay=(GestureOverlayView)findViewById(R.id.gestures_overlay);
overlay.setBackgroundColor(Color.MAGENTA);//It works!!!
overlay.setGestureColor(Color.BLUE);//Not work
overlay.setGestureStrokeWidth(12);//It works
Am I wrong? Because I want to dynamically change the color of gesture stroke, please help me, thanks a lot.