Android multitouch! hack anyone?

前端 未结 3 557
深忆病人
深忆病人 2020-12-16 02:17

I have to let this slip for now as a purely academic issue but i would very much like to see a solution in near time.

Due to the way that Android handles multitouch

3条回答
  •  情话喂你
    2020-12-16 02:51

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        if(ev.getPointerCount() > 1) return false;
        return super.dispatchTouchEvent(ev);
    }
    

    insert this on activity or view

提交回复
热议问题