【发布时间】:2023-03-24 08:55:02
【问题描述】:
我有一堂课,我这样设置界限:
tattoo.setBounds(getWidth() / 2 - zoomController - x, getHeight() / 2 - zoomController - y, getWidth()/ 2 + zoomController - x, getHeight()/ 2 + zoomController - y);
tattoo.draw(c);
我希望能够在用户在这些范围内单击时执行操作。检查点击是否在范围内的最简单方法是什么?
【问题讨论】:
标签: android drawable surfaceview touch-event bounds