@
ldb68 I think you're referring to the new version of WebViewExtras.
I've not yet actually uploaded this new version 'properly' to the forum.
I've posted a link to it occasionally though...
Anyway you can find the current new version here:
http://android.martinpearman.co.uk/b4a/temp/WebViewExtras2_20130728.zip
Take a look at the WebViewExtras.html file included.
The WebViewClient is now named DefaultWebViewClient.
Here's an example:
Sub Process_Globals
End Sub
Sub Globals
Dim WebView1 As WebView
Dim WebViewExtras1 As WebViewExtras
End Sub
Sub Activity_Create(FirstTime As Boolean)
WebView1.Initialize("")
Activity.AddView(WebView1, 0, 0, 100%x, 100%y)
WebViewExtras1.Initialize(WebView1)
Dim WebViewClient1 As DefaultWebViewClient
WebViewClient1.Initialize("WebViewClient1")
WebViewExtras1.SetWebViewClient(WebViewClient1)
WebViewExtras1.LoadUrl("http://google.co.uk/")
End Sub
Sub Activity_Resume
End Sub
Sub Activity_Pause (UserClosed As Boolean)
End Sub
Sub WebViewClient1_ScaleChanged(OldScale As Float, NewScale As Float)
Log("WebViewClient1_ScaleChanged from "&OldScale&" to "&NewScale)
End Sub
That example will detect a zoom change but
only when the zoom is changed using the WebView's built in zoom controller.
It won't detect a zoom change from a pinch zoom.
I looked into this a while back and it's a known issue - whether it's a bug (that might one day be fixed) or whether it's the intended behaviour i don't know.
The FlingableWebView uses a GestureDetector to detect flings and as you've found out, adding an additional GestureDetector using b4a overwrites the FlingableWebView's GestureDetector.
Martin.