wxr
2023-06-06 592974441a4df95fffd9167c90192da1a390b1c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
 
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Webkit;
using Android.Widget;
 
namespace HDL_ON_Android
{
    [Activity(Label = "WebviewActivity",Theme = "@style/MyTheme1")]
    public class WebviewActivity : Activity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
 
            // Create your application here
            SetContentView(Resource.Layout.activity_webview);
            string url = Intent.GetStringExtra("url");
 
            WebView view = FindViewById<WebView>(Resource.Id.webView1);
 
            view.LoadUrl(url);
 
            LinearLayout btnBack = FindViewById<LinearLayout>(Resource.Id.webview_back_ll);
            btnBack.Click += (sender, e) => {
                Finish();
            };
 
 
        }
    }
}