Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在打开 html 网站的应用程序中使用 webview。现在根据我公司的要求,当用户单击 webview 时,我需要发生一些事件。 我已经尝试过setOnClickListener()事件,但它不起作用。 请指导我。谢谢你。
setOnClickListener()
创建一个框架布局,然后在其上设置 webview,将您的 onlclick 侦听器放在框架布局上