I'm developing the drawing type of application in that particular activity i want to disable the touch events and i want to enable only the stylus event. Is there any default API in android to differentiate between two events ?
To distinguish whether a MotionEvent is derived from a human thumb or a TPT’s pen, Volker polls MotionEvent.getTouchMajor(). If a fatty finger touches the screen, the diameter of the ellipse will be > 0. If it’s an anorexic digitizer pen, it will be 0.0f.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With