Answer the question
In order to leave comments, you need to log in
How to attach an ImageView to a drawn drawline?
Draw a line
mCanvas.drawLine(mStartX, mStartY, mx, my, mPaint) ;
It is necessary to attach an imageview to the beginning and end of the line in order to then move and change the length and position of the line ends.
How to do it?
Answer the question
In order to leave comments, you need to log in
Will it turn out the way I want? After all, after drawing a line, the next line will be drawn on the next click ....
I tried to make a button on click on which I get two imageviews with a line between them. I move the imageview, everything is fine, but I can’t figure out how to redraw the line between ....
The level of knowledge does not yet allow .... Please share ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question