实现画布android
我正在尝试在 android 的 ios 中实现画布功能。 ios 画布有一个名为drawChildren 的属性,它基本上是一个数组,用于管理可由画布控制器添加/删除的绘图对象。
有没有人可以帮助我实现这一壮举?我知道应该使用 Canvas 类,但是,我不确定如何将其排列为数组。
I am trying to implement the canvas feature in ios for android. The ios canvas has a property known as drawChildren that is basically an array that manages drawing objects that can be added/removed by the canvas controller.
Is there a way anyone can help me achieve this feat? I am aware that the Canvas class should be used however, I am not sure how to arrange it in as array.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道这是否适合你,或者你是否解决了这个问题,但我采用了这种方法:
Activity.class
SurfaceView
并且你添加了具有draw和更新方式:
等等。
I don't know if this will work for you, or if you solved this but I made this approach:
Activity.class
SurfaceView
and you add children classes that have draw and update methods:
and so on.