title: Draw line on touch event mono for android
body: <p>I tried creating two circles ondraw in a activity. But what I really want to accomplish is to draw a line on touch move. The user will be able to use his/her finger to draw a line depending on the finger's movement. Here's how I dot my drawing.</p>
  
  <pre><code>protected override void OnCreate(Bundle bundle)
      {
          base.OnCreate(bundle);
  
          currentLevel = Intent.GetIntExtra("gameLevel", 0);
          playerScore = Intent.GetIntExtra("score", 0);
          SetContentView(new SampleView(this));
  
  
          // Create your application here
      }
  
      private class SampleView : View
      {
          private Paint mPaint;
  
          public SampleView(Context context)
              : base(context)
          {
              Focusable = true;
  
              mPaint = new Paint();
              mPaint.AntiAlias = true;
          }
  
          protected override void OnDraw(Canvas canvas)
          {
              canvas.DrawColor(Color.White);
  
              canvas.Translate(10, 10);
  
              canvas.SaveLayerAlpha(0, 0, 200, 200, 0x88, SaveFlags.All);
  
              mPaint.Color = Color.Red;
              canvas.DrawCircle(75, 75, 75, mPaint);
              mPaint.Color = Color.Blue;
              canvas.DrawCircle(125, 125, 75, mPaint);
  
              canvas.Restore();
          }
      }
  </code></pre>