Korilakkuma / CanvasView

Android Application Library
Other
183 stars 72 forks source link

Want to change on mode on different button click #9

Open SagarPanwala opened 8 years ago

SagarPanwala commented 8 years ago

Hi Friend,

I hope there is a answer of my Question. I want to change Mode, Drawer, PaintStrokeWidth on button click. Currently I wrote the code

btn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { canvas.setMode(CanvasView.Mode.ERASER); } });

but it is not changing the mode to Eraser.