I’m currently experimenting with the webView and I wonder how to add an image over it so the user can press on it to go back to e.g. a menu. I tried to attach an image with a higher Z-index than the actual webView, but It doesn’t work… I cant see the image.
My understanding is that native UI elements (web view and video view) are separate from the GL view Cocos is rendered in, thus the Z order does not matter. By default, they are on top of the GL view, which means they will catch all of the touch events that happen in their bounds; or if you make some changes to how the views are added (see Enhancement request for VideoPlayer) you can insert it behind the GL view, in which case the GL view will catch all the touches. For web views, I stick with the default, and leave a space at the top for a Cocos header with an exit button.
It looks like that the onShouldStartLoading callback doesn’t work on the Android Platform at all, tried with my code and with cpp-tests. On iOS it works fine.