How to identify the touch screen in Android?

Actually how to do it right?

Found root layout in activity as view and hang it from the OnTouchListener of the heir with the method onTouch(). It works, but only on ACTION_DOWN. But I wanted to catch other events to display the line on the screen.

What are you doing wrong?
October 3rd 19 at 01:26
1 answer
October 3rd 19 at 01:28
Solution
Thank you all. Understood.
Why not describe the solution to your problem, even if they themselves figured out? Perhaps someone in the future will be puzzled by your question to find your question by searching, but instead will see a "thank you. Figured out". - Jamarcus.Gleichn commented on October 3rd 19 at 01:31
Support. Describe the solution here. - linnie_Collier commented on October 3rd 19 at 01:34
Well, everything turned out to be quite simple. When the Eclipse adds class and interface "by clicking" "add" methods to be implemented, then a refund of these methods can be done at the discretion of the Eclipse. That is what happened - after the first method call returned false, and then framwork decided that the more messages the listener should not be sent. - Shanie_Zulauf67 commented on October 3rd 19 at 01:37

Find more questions by tags Android