private void GestureOverlayViewOnGesturePerformed(object sender, GestureOverlayView.GesturePerformedEventArgs gesturePerformedEventArgs)
        {
            //TODO: Step 12 - Get gestures that have a good decent score
            IEnumerable<Prediction> predictions = from p in _gestureLibrary.Recognize(gesturePerformedEventArgs.Gesture)
                                                  orderby p.Score descending
													where p.Score > 1.0d
                                                  select p;

            Prediction prediction = predictions.FirstOrDefault();

            if (prediction == null)
            {
                Log.Debug(GetType().FullName, "Nothing seemed to match the user's gesture, so don't do anything.");
                return;
            }

            Log.Debug(GetType().FullName, "Using the prediction named {0} with a score of {1}.", prediction.Name, prediction.Score);

            //TODO: Step 13 - Determine which gesture was performed
			if (prediction.Name.StartsWith("checkmark") && prediction.Score > 4.0f /* Use this to eliminate false positives */)
            {
                _imageView.SetImageResource(Resource.Drawable.checked_me);
            }
            else if (prediction.Name.StartsWith("erase", StringComparison.OrdinalIgnoreCase))
            {
                // Match one of our "erase" gestures
                _imageView.SetImageResource(Resource.Drawable.check_me);
            }
        }
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            //TODO: Step 9 - Add a Gesture Overlay View as the primary view
            // This activity will use a GestureOverlayView as it's content view. The layout file
            // will be added as a subview of this.
            GestureOverlayView gestureOverlayView = new GestureOverlayView(this);
            SetContentView(gestureOverlayView);

            //TODO: Step 10 - Subscribe to gesture events
            gestureOverlayView.GesturePerformed += GestureOverlayViewOnGesturePerformed;

            //TODO: Step 11 - Load the gestures from the raw resource
            // Load the binary gesture file that we created.
            _gestureLibrary = GestureLibraries.FromRawResource(this, Resource.Raw.gestures);
            if (!_gestureLibrary.Load())
            {
				Log.Error(GetType().FullName, "There was a problem loading the gesture library.");
                Finish();
            }

            // Load up the layout file for this activity and add it as child view of the 
            // GestureOverlayView
            View view = LayoutInflater.Inflate(Resource.Layout.custom_gesture_layout, null);
            _imageView = view.FindViewById<ImageView>(Resource.Id.imageView1);
            gestureOverlayView.AddView(view);

            
        }
			public void OnGestureCancelled (GestureOverlayView overlay, MotionEvent evt) 
			{
			}
			public void OnGestureEnded (GestureOverlayView overlay, MotionEvent evt) 
			{
				parent.mGesture = overlay.Gesture;
				if (parent.mGesture.Length < LENGTH_THRESHOLD)
					overlay.Clear (false);
				parent.mDoneButton.Enabled = true;
			}
			public void OnGesture (GestureOverlayView overlay, MotionEvent evt)
			{
			}
			public void OnGestureStarted (GestureOverlayView overlay, MotionEvent evt) 
			{
				parent.mDoneButton.Enabled = false;
				parent.mGesture = null;
			}