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

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -