Get Android Pixel Values
سؤال
I have searched alot of this issue on google but unable to get any help.My question is how to get pixel position of android screen where the user has tapped?
المحلول
this does the job.
public boolean onTouchEvent(MotionEvent event) {
float x = event.getX();
float y = event.getY();
نصائح أخرى
This is probably what you're looking for: onTouchEvent
لا تنتمي إلى StackOverflow