Menggambar Garis di Canvas pada Android

Paint myPaint = new Paint();
myPaint.setColor(Color.rgb(255, 0, 0));
myPaint.setStrokeWidth(5);
myPaint.setStyle(Paint.Style.STROKE);
canvas.drawRect(20, 130, 420, 530, myPaint);
comments powered by Disqus