如何添加按钮到画布DrawVIew - Android电子 [英] How to add button into a Canvas DrawVIew - Android
本文介绍了如何添加按钮到画布DrawVIew - Android电子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在这之后的政党成员允许我用手指画出: http://marakana.com/tutorials/android/2d-graphics-example.html ......我做了有关图纸和其他东西的一些变化。但是现在我不得不添加一个按钮至极要救这些帆布成JPG图片...我如何添加按钮在画布上,旁边保存呢?
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?
推荐答案
您不能将按钮添加到您的画布。创建一个布局XML文件,添加自定义视图出现,并添加按钮也有。
You cannot add a Button to your canvas. Create a layout XML file, add your custom view there and add the Button there too.
这篇关于如何添加按钮到画布DrawVIew - Android电子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文