android - detect where on the screen onTouchevent happened -
I found an onTouchEvent boolean on a Surfaceview, I have open GL objects drawn on the scene and I'm wondering, by the way Also know where the on-touch has happened on the screen? For example (x, y) coordination
Use event .getX () and event.getY () Assuming that you have the following method The signature is:
Public Boolean On-Touch (View View, Motion Event Event)
Comments
Post a Comment