Android WebView use setWideViewPort, disable double-tap zoom but keep pinch zoom?

前端 未结 4 1617
無奈伤痛
無奈伤痛 2021-02-03 14:51

I am using this code and it works exactly as I want. But I have to implemented another feature on double tap and would like to disable the double tap zooming (but keeping the pi

4条回答
  •  南方客
    南方客 (楼主)
    2021-02-03 15:17

    Sorry, I don't have time to test this but try:

    GestureDetector.SimpleOnGestureListener sogl = new GestureDetector.SimpleOnGestureListener() {
        public boolean onDoubleTap(MotionEvent e) {
            showToast("Double tap");
            return true; //instead of false
        }
    }
    

提交回复
热议问题