Oops, I did it again… Another PR got merged into Xamarin
Everybody was WebView zooming, ha!
Before this change, it was only possible to enable zooming on Android by implementing a custom renderer. Now, a new API was introduced to make this possible straight from Xamarin.Forms. Have a look at the code underneath.
To also display on-screen zoom controls for the user, you can use DisplayZoomControls. With this method,
Note that DisplayZoomControls only has use when EnableZoomControls has been set to true as well.
A bit of background
Let me tell you a little bit about what is going on behind the scenes. What happens is that the true or false that you now set on the Forms WebView is transferred to the native Android WebView. Underneath you can find a code snippet of the actual implementation.
I simply set a couple of properties on the Android native control based on the values I get through from Xamarin.Forms. I have implemented a little check on certain API levels, although those don’t seem to be relevant anymore nowadays, or at least I hope no one is using those anymore.
The Android naming and working
When the new version of Xamarin.Forms
3.6 4.0, this will be available for you to use. This together with some other features I have built into the Forms toolkit should be available shortly.
There are a lot of issues still open on the Xamarin