Forum Xamarin.Android
We are excited to announce that the Xamarin Forums are moving to the new Microsoft Q&A experience. Q&A is the home for technical questions and answers at across all products at Microsoft now including Xamarin!

We encourage you to head over to Microsoft Q&A for .NET for posting new questions and get involved today.

Desktop mode webview

Xammy10Xammy10 Member ✭✭✭

How to set webview in desktop mode?
I try using User agent:

WebView.Settings.UserAgentString = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100101 Firefox/4.0";

but this didn't work at all

Thanks in advance


  • BillyLiuBillyLiu Member, Xamarin Team Xamurai


    How do you set your webview? I'm using the following code. it works:

            WebView webView = FindViewById<WebView>(Resource.Id.webview1);
            webView.SetWebViewClient(new WebViewClient());
            webView.Settings.UserAgentString = "Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20100101 Firefox/4.0";
Sign In or Register to comment.