title: android how to show PopupMenu in webview like GMail
body: <p>I want to show PopupMenu in webview on my app like GMail.</p>
  
  <p><img src="https://i.stack.imgur.com/B5sSs.png" alt="enter image description here"></p>
  
  <p>Here is my code:</p>
  
  <pre><code>webView.addJavascriptInterface(new WebAppInterface(getActivity()), "ScriptToAndroid");
  
  &lt;div class="moreover_icon" onclick="showPopup('file_attach_path', event)"&gt;
      &lt;img class="overflow_icon" src="android_moreover_icon"/&gt;
  &lt;/div&gt;
  
  &lt;script type="text/javascript"&gt;
  
      function showPopup(file_path, event) {
          ScriptToAndroid.showPopupDialog(file_path, pos_x, pos_y);
      }
  &lt;/script&gt;
  
  @JavascriptInterface
  public void showPopupDialog(String filePath, int x, int y) {
      //show PopupMenu
  }
  </code></pre>