Android - x and y values of touchmove event

You must Login before you can answer or comment on any questions.

When I catch the x and y values of a touchmove event that I tied to an imageview, they randomly appear to alternate between screen coordinates and between the relative position to the view's original position. Is this a bug or a feature? And if it is a feature, how can I determine which type of value is passed through?

This happens on Android. On the Mobile Web previewer it is always the screen coordinates.

— asked 1 year ago by Julian P
1 Comment
  • Yeah sounds like bug, and programmers often resort to workaround i.e. anything that can get things done like the below answer (convertPointToView).

    — commented 1 year ago by Syed Setia Pernama Syed Idris

1 Answer

Your Answer

Think you can help? Login to answer this question!