it's possible to custom view touch enable on two-finger touch, and disable on one-finger touch
@Override
public boolean onTouch(View view, MotionEvent motionEvent) {
int action = motionEvent.getActionMasked();
Log.e("zoom"," action :: " + action);
int point = motionEvent.getPointerCount();
Log.e("zoom"," point :: " + point);
if(point == 1){
return true;
} else if(point == 2){
return true;
} else {
return false;
}
}
this is my custom view onTouch()