Check if Android WebView is consuming touch events

后端 未结 4 834
臣服心动
臣服心动 2021-01-31 13:59

Short version

How can I detect whether Android WebView consumed a touch event? onTouchEvent always returns true and WebViewClient\'s on

4条回答
  •  南方客
    南方客 (楼主)
    2021-01-31 14:27

    Try to set the android:isClickable="true" in the XML and create an onClickListener in the Java code.

提交回复
热议问题