Great - it works!
The FlingableWebView class extends the WebView class, anywhere you currently pass a WebView as a parameter you can instead pass a FlingableWebView.
A FlingableWebView has all the properties and methods of a WebView plus the additional Fling event.
So there should be no problems passing a FlingableWebView to any of the methods of the older WebViewExtras and you should be able to pass a FlingableWebView to the new WebViewExtras Initialize method.
So yes you can use the FlingableWebView with both old and new versions of WebViewExtras.
Now if you look at my
WebViewSettings library you'll see it has a method:
setDisplayZoomControls (webView1 As WebView, Enabled As Boolean)
Sets whether the on screen zoom buttons are displayed.
A combination of built in zoom controls enabled and on screen zoom controls disabled allows for pinch to zoom to work without the on screen controls.
Only supported on Android API level 11 and later.
So you can use the old WebViewExtras, a FlingableWebView and then use WebViewSettings to prevent the display of the zoom controls.
(The new WebViewExtras replaces not just the old WebViewExtras but also WebViewSettings).
If you want to update to the new WebViewExtras and execute javascript then you'd:
- Initialize the new WebViewExtras with a WebView or FlingableWebView.
- Use the WebViewExtras method:
ExecuteJavascript (Javascript As String)
Executes a string of javascript statements.
Martin.