[mono-android] WebView goes full screen when in tab layout
www at gencode.com
www at gencode.com
Tue Mar 15 23:43:31 EDT 2011
I made an app using the tab layout example
The example uses TextViews
I simply changed the textview to webview
As shown below, but I did not get an embedded webview inside the tabs as
expected like the textview does, instead I got a full screen browser
protected override void OnCreate(Bundle bundle)
{
base.OnCreate(bundle);
WebView web_view = new WebView(this);
web_view.Settings.JavaScriptEnabled = true;
web_view.LoadUrl("http://www.google.com");
SetContentView(web_view);
}
___________________________________________________________
Ed Scott | Microsoft Certified Solutions Developer (MCSD)
www: <http://www.gencode.com/> http://www.gencode.com
emaill: <mailto:escott at gencode.com> escott at gencode.com
Location: Earth, Milkyway Galaxy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/mailman/private/monodroid/attachments/20110315/7e75efa6/attachment.html
More information about the Monodroid
mailing list