Skip to content
This repository has been archived by the owner on Jun 30, 2023. It is now read-only.

Commit

Permalink
use activity and not applicationContext w/android embedded webview (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
jennyf19 authored Dec 11, 2019
1 parent 2a75df9 commit 686afca
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ protected override void OnCreate(Bundle bundle)
base.OnCreate(bundle);
// Create your application here

WebView webView = new WebView(ApplicationContext);
var relativeLayout = new RelativeLayout(ApplicationContext);
WebView webView = new WebView(this);
var relativeLayout = new RelativeLayout(this);
webView.LayoutParameters = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.MatchParent, RelativeLayout.LayoutParams.MatchParent);

relativeLayout.AddView(webView);
Expand Down

0 comments on commit 686afca

Please sign in to comment.