Turn from
http://blog.csdn.net/yanbober/article/details/45887547
- The Touch Control (View) first executes the Dispatchtouchevent method.
- The Ontouch method is executed first in the Dispatchtouchevent method, followed by the OnClick method (the OnClick method executes in ontouchevent, which is analyzed below).
- If the control (View) Ontouch returns false or Montouchlistener is null (the control does not have the Setontouchlistener method set) or if the control is not enable, the ontouchevent is dispatched, The Dispatchtouchevent return value is the same as ontouchevent returns.
- If the control is not set to enable the Ontouch method will not execute, only by overriding the control's Ontouchevent method (which has been processed above), the Dispatchtouchevent return value is the same as ontouchevent return.
- If the control (View) is enable and Ontouch returns True, Dispatchtouchevent returns true directly, and the Ontouchevent method is not called.
Android Touch Screen Event Summary