Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Is it possible to add android zoom buttons on only one webview?

$
0
0

I have one web view where I need the zoom buttons enabled, but they look tacky and get in the way of other web views.

I know how to set the zoom buttons up using this.Control.Settings.SetSupportZoom(false); ,
but it applies to every single web view.

In my CustomWebViewRenderer I have no way to reference what url I'm actually using to open the webview. Instead, the url just returns "file:///android_asset/"

Any ideas of how I co do something like...

if(url == "example.com")
this.Control.Settings.SetSupportZoom(true)
else
this.Control.Settings.SetSupportZoom(false)

It doesn't have to be exactly that, just the same effects.


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>