Custom views inside canvas android

霸气de小男生 提交于 2019-12-25 01:49:45

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!