Android- Draw line between two views

后端 未结 2 1386
礼貌的吻别
礼貌的吻别 2021-01-17 05:00

Below is my program where I have created three new views in a frame. On click of two different views I want to draw a line between the views. I am trying to figure out how t

2条回答
  •  渐次进展
    2021-01-17 05:19

    Just draw line in onDraw() on some condition and set this condition in your activity in onTouch() method. Then call invalidate on Views that you changed their condition.

提交回复
热议问题