In my app i am able to draw something on canvas within on touch event.
But problem is, at a time single item can be draw within touch event. means if i will put lineto() and moveto() then it ll draw lines.
if addCircle() ll given then circle drawn.and also for Rect and oval.
But i want to give different buttons for that. By default line will be drawn. If i press Circle then circle will drawn, if Rect button press then Rectangle will draw on canvas by using same touch event.
So i want to know what i ll write under on touch events so that it will work for every button click?
Give me a way.
Thank you
Create three buttons:
In circleB (onClick):
In rectB (onClick):
In lineB (onClick):
For circle size: