Why is this soo hard to find out?
public boolean onTouch(View v, MotionEvent event)
I need to convert float event.getY() to and int.
Is this possible.
event.getY().intValue() will not work at all.
Any ideas?
Why is this soo hard to find out?
public boolean onTouch(View v, MotionEvent event)
I need to convert float event.getY() to and int.
Is this possible.
event.getY().intValue() will not work at all.
Any ideas?
Uhhh, yeah, how about:
int y = (int)event.getY();
You see getY()
only returns a float for devices that have a sub-pixel accuracy.