Android:图形shape.intersects方法。 android 中有模拟吗?
我想找到一种方法如何在android中做这样的事情(就像我使用java.awt.Shape所做的那样):
Shape shape = ...;
shape.intersects(left, top, width, height);
shape.contains(left, top, width, height);
尝试考虑android类:路径,形状...但没有找到任何东西。对于所有这些 Android 的东西有点困惑。
请问各位能帮我找到解决办法吗?
I want to find a way how to do in android such thing(things like I do using java.awt.Shape):
Shape shape = ...;
shape.intersects(left, top, width, height);
shape.contains(left, top, width, height);
Tried to consider android classes: Path, Shape... but didn't find anything. A little bit confused by all this android stuff.
Could you please, guys help me to find a solution?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Android 有 Rect 类有检测交叉点的方法。
这也可能有帮助:
如何使用 Rect.intersect 方法。
Android has the Rect class that has methods to detect intersection.
This might help as well:
How to use the Rect.intersect method.