N
N
Nikolarsen2018-03-19 00:57:13
Java
Nikolarsen, 2018-03-19 00:57:13

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

2 answer(s)
E
Emil Valiyev, 2018-03-19
@skykoder

Question about it? Demo

N
Nikolarsen, 2018-03-21
@Nikolarsen

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 question

Ask a Question

731 491 924 answers to any question