简体   繁体   中英

in WebView, how to know which button is clicked?

Android: guys i want to detect which button is clicked by the user. The image below will help me to explain my problem.

I load google inside my WebView.

在此处输入图片说明

I dont have any idea on how to do this. Please help me, im using java.

You need to use WebViewClient for this purpose. below is link for sample URL

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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