我正在尝试在Android Xamarin应用程序中放大/缩小Webview控件。我正在尝试通过多点触控进行缩放。下面的代码不起作用..
我的XAML代码:
<WebView
android:id="@+id/WebView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentTop="true" />
WebView.SetWebViewClient(new WebViewClient());
WebView.Settings.DefaultZoom = WebSettings.ZoomDensity.Far;
WebView.Settings.SetSupportZoom(true);
WebView.Settings.BuiltInZoomControls = true;
不知道出什么问题了...未找到任何解决方案..请帮助。
注意:缩放功能适用于本地内容,但是当它加载Internet的URL时却不能。
谢谢!
我已经将按钮单击功能移至OnCreate方法,并且工作正常。多谢你们!!
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句