简体   繁体   中英

How to disable a particular button/link in a webview in android

I am new to Android development. Created a simple application with a webview. Webview loads a url. Now I want to disable only one button from the website. How can I do that using the class name of the button?

you shouldn't. if you decided to make a web GUI then handle actions in "web" way (JS?). if you want to handle natively clicks and other actions (different gestures, scroll, etc.) then make native GUI with XML. making such hybrid as you decribed, while possible eg using JS interface for making communication web<->native sides , is waste of time and resources (for handling whole GUI, especially so basic actions like clicks or enablind/disabling items)

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