简体   繁体   English

在WebView中,如何知道单击了哪个按钮?

[英]in WebView, how to know which button is clicked?

Android: guys i want to detect which button is clicked by the user. Android:我想检测用户单击哪个按钮的家伙。 The image below will help me to explain my problem. 下图将帮助我解释我的问题。

I load google inside my WebView. 我在Google WebView中加载了google。

在此处输入图片说明

I dont have any idea on how to do this. 我不知道如何执行此操作。 Please help me, im using java. 请帮助我,即时通讯使用Java。

You need to use WebViewClient for this purpose. 为此,您需要使用WebViewClient。 below is link for sample URL 以下是示例网址的链接

http://marakana.com/forums/android/examples/58.html http://marakana.com/forums/android/examples/58.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM