问题
I'm following this tuto the which allow me to draw using the finger: http://marakana.com/tutorials/android/2d-graphics-example.html... I made some changes about drawing and other things... But now i Have to add a button the wich should save these canvas into a image jpg... How can I add the button at the canvas, and next save it?
回答1:
You cannot add a Button to your canvas. Create a layout XML file, add your custom view there and add the Button there too.
来源:https://stackoverflow.com/questions/15980024/how-to-add-button-into-a-canvas-drawview-android