Victor
Victor

Reputation: 193

Click on webview and on listener at the same time

I have an invisible listener above of webview and i want that when the user click on this area, the invisible listener does something and if the web has some button, it does like if the invisible listener doesn't exist.

Upvotes: 1

Views: 981

Answers (1)

Anthony Atkinson
Anthony Atkinson

Reputation: 3248

Look into the use of Javascript interfaces within WebView. Please see this area of the Android Developers Guide. Basically, you should be able to communicate from the page to the device with the Javascript interface and let your WebView Activity know whether the button on the page is present or not.

Upvotes: 1

Related Questions