问题
I want to create a GUI in android where I want to achieve the following :- 1) Drag and connect components(image view) to an custom view.
2) While the connection has been achieved the component and the custom view has to be connected using a bezier curve.
3) When I move the connected component around (drag and move), the connected line should expand/contract accordingly. (ie, This cannot be a static image, it needs to be drawn.)
Please provide me with some guidelines to achieve the same.
The challenge is that to draw the connection line I have to use a canvas, but canvas doesnot allow custom views/ image views inside it.
来源:https://stackoverflow.com/questions/29297931/custom-views-inside-canvas-android