CoatedMoose / CustomViews

A set of views for use in android applications, including a signature capture view.
24 stars 6 forks source link

I added this two lines to your view to add a dot when the user click on signature view #5

Closed forsubhi closed 11 years ago

forsubhi commented 11 years ago

private void touchDown(float x, float y) { mPath.reset(); mPath.moveTo(x, y); curX = x; curY = y; //new mPath.quadTo(curX, curY, curX+2, curY+ 2); mCanvas.drawPath(mPath, mPaint); }

CoatedMoose commented 11 years ago

I am not entirely sure why this is necessary. I thought I did last night, but then I fell asleep. Can you please elaborate?

forsubhi commented 11 years ago

when the user sign they often want to but dots in their signature so this code is important

CoatedMoose commented 11 years ago

Makes perfect sense. I don't think it is a good idea to draw a point for every single touchDown when the following drag will overwrite it. This will keep the drawing down. Negligible performance difference I am sure, but it appeals to my anal-retentiveness.