|
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();
|
};
|
|
|
}
|
}
|
}
|