, y1);
var x2; //I need to find this -- see more").innerHTML += CreateHtmlPoint(color, x2, y2); //This does not workfunction CreateHtmlPoint(color和y2的示例如下所示
我正在android studio上工作,我想要创建抛出对象的效果,在这种情况下,在画布上画一个圆圈。但我遇到了一些问题。有人能给我指路吗?我把"X“和"Y”值放在用户触摸的地方,但是我怎么才能让圆圈朝那个方向移动呢?谢谢public class Game extends SurfaceView implements View.OnTouchListener {
int x,(Color.BLACK);
canvas.drawCircl