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

Popular posts from this blog

wpf - Line breaks and indenting for the XAML of a saved FlowDocument? -

gtk - Python Window Resize -

c# - read full xml file data over tcp -