Android的SurfaceView绘图 [英] Android SurfaceView drawing
本文介绍了Android的SurfaceView绘图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Android的新的。我查阅了两个例子自定义视图与用户交互一>和的Android SurfaceView 。我想,在第二个例子中汲取cicle同样与第一个例子。我怎样才能做到这一点?
第二个问题是:当run()方法必须停止
I am new in android. I reviewed two examples Custom View with User Interaction and Android SurfaceView. I want that in second example draw cicle similarly with first example. How I can do this? Second question is: when the run() method has to stop?
推荐答案
我找到了解决办法。对于SurfaceView的正常工作,我必须设置画布背景。当我做这一切都是正常的。
I found solution. For correctly work of SurfaceView I had to set background of canvas. When I done it everything is alright.
这篇关于Android的SurfaceView绘图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文