Android draw point

孤者浪人 提交于 2019-12-06 07:27:00
Kanak Sony

You can draw Circle by overriding onDraw() of your custom view. Check following link for drawing basics - http://developer.android.com/training/custom-views/custom-drawing.html

protected void onDraw(Canvas canvas) {
 super.onDraw(canvas);
 canvas.drawCircle(x, y, radius, paint);
}

Also, similar replies are here - How to draw circle by canvas in Android?

Your paint must be "full", for that you must write this

paint.setStyle(Paint.Style.FILL);

then just draw your circle

canvas.drawCircle(x, y, radius, paint);

I hope it will be helpfull

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