How to support multitouch feature on the activity in android 2.1? -
i want support multitouch feature in application having set of activities, how achieve programmatically in android 2.1 version?
please share sample code.
regards, piks
i know question old, needs update every , then. how can newer versions of android:
@override public boolean ontouchevent(motionevent e) { super.ontouchevent(e); switch (motioneventcompat.getactionmasked(e)) { case motionevent.action_down: case motionevent.action_pointer_down: //do action break; } return true; } there no need call setontouchlistener because called no matter whenever screen touched. overriding can customize touch events. keep in mind normal ontouchlistener not support multitouch
Comments
Post a Comment