Clear Gesture From Gestureoverlayview In Android
I am using GestureOverlayView to draw any picture I have implemented it successfully,but when i want to draw another picture, I need to clear the previous from the GestureOverlayVi
Solution 1:
These two lines will clear the created gesture from your activity
gesture.cancelClearAnimation();
gesture.clear(true);
Solution 2:
I've never used GestureOverlayView before, but the way I see it you have two possibilities. Either clear the GestureOverlayView through something like this method: http://developer.android.com/reference/android/gesture/GestureOverlayView.html#clear(boolean)
Or clear the already drawn image from your bitmap, which is where the picture is probably being stored. In that case you're going to want to get a reference to your Bitmap and call recycle() on it.
Of course, I've never used either of these classes before, so I'm just guessing off of a quick google.
Post a Comment for "Clear Gesture From Gestureoverlayview In Android"