title: how to detect click on button, video element in webview?
body: <p>i can detect some events (<a href="http://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#constants">http://developer.android.com/reference/android/webkit/WebView.HitTestResult.html#constants</a>) in html using WebView.HitTestResult on webview.onTouch event. what i try to achieve is that when user click anywhere in webivew, if it does not start any action like play/pause video, redirect some page etc then toggle visibility of footer linearLayout in same activity. but i can't catch some actions like click on button, play/pause button of video element in webview. So how i can i detect these actions?</p>
  
  <pre><code>   webView.setOnTouchListener(new View.OnTouchListener() {
          public boolean onTouch(View v, MotionEvent event) {
              WebView.HitTestResult hr = ((WebView) v).getHitTestResult();
  
              if (hr != null) {
                  Log.w("webView.onTouch", "getExtra = " + hr.getExtra() + "\t\t Type=" + hr.getType());
              } else {
                  Log.w("webView.onTouch", event.toString());
              }
  
              return false;
          }
      });
  </code></pre>