How to add button into a Canvas DrawVIew - Android [closed]

有些话、适合烂在心里 提交于 2019-12-13 11:26:36

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!