Android onKeyLongPress when webview exists

后端 未结 2 2060
星月不相逢
星月不相逢 2021-01-21 08:57

Regarding to that question and that question if you use onKeyDown and onKeyLongPress one need to use event.startTracking(); inside onKeyDown. But I use WebViews.

2条回答
  •  醉话见心
    2021-01-21 09:29

    Take a look at this answer.

    Basically you use a handler in your onTouchEvent to detect a long press.

    Hope it helps!

提交回复
热议问题