5
Ben GMail gibi benim app web görünümünde PopupMenu göstermek istiyorum.android nasıl GMail gibi webview içinde PopupMenu göstermek için
webView.addJavascriptInterface(new WebAppInterface(getActivity()), "ScriptToAndroid");
<div class="moreover_icon" onclick="showPopup('file_attach_path', event)">
<img class="overflow_icon" src="android_moreover_icon"/>
</div>
<script type="text/javascript">
function showPopup(file_path, event) {
ScriptToAndroid.showPopupDialog(file_path, pos_x, pos_y);
}
</script>
@JavascriptInterface
public void showPopupDialog(String filePath, int x, int y) {
//show PopupMenu
}
herkes cevap mı ihtiyacı var bir WebViewClient kullanın: Burada
benim kodudur? – nAkhmedov