java Android上的指尖绘图应用程序?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2403604/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Fingertip drawing applications on Android?
提问by STD
I'm a new user to this interesting forum!
我是这个有趣论坛的新用户!
I want start developing an application for android and before starting i want learn about some android features...
我想开始为 android 开发应用程序,在开始之前我想了解一些 android 功能......
The first android feature is how to correlate finger motion on the screen with java...
android 的第一个功能是如何将屏幕上的手指运动与 java 相关联...
Are there any source code examples that show how to draw with your finger on an android screen?
是否有任何源代码示例显示如何用手指在 android 屏幕上绘图?
Can you suggest a good place for me to download an example?
你能给我推荐一个下载例子的好地方吗?
thanks
谢谢
回答by Jeremy Logan
The ApiDemosthat come with the SDK have an example called TouchPaintthat does exactly this... it's a simple little finger drawing app. The source is actually very easy to read and it shows all of the basics.
SDK 附带的ApiDemos有一个名为TouchPaint的示例,它完全可以做到这一点……它是一个简单的小指绘图应用程序。该源代码实际上非常易于阅读,并且显示了所有基础知识。
回答by Mat Nadrofsky
Check out this tutorial on drawing with a canvasin Android. There are some source code examples there for you as well.
查看有关在 Android 中使用画布进行绘图的教程。还有一些源代码示例供您使用。
Also, the Android developer's guideand tutorials on the Google site are great. That's what I started with.
此外,Google 网站上的Android 开发人员指南和教程也很棒。这就是我开始的。

