I have a path drawn on a canvas as shown
@Override
protected void onDraw(Canvas canvas) {
super.onDraw(canvas);
path.moveTo(X, Y);
path.lineTo(X+20, Y);
canvas.drawPath(path, paint);
invalidate();
}
I want this to appear in an imageView in an xml, but not sure how to do that. How to I make this canvas appear in the imageview? I have a bitmap but unable to connect all of them.