using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Android.App;
using Android.Content;
using Android.Content.PM;
using Android.OS;
using Android.Webkit;
using Android.Runtime;
using Android.Views;
using Android.Widget;
namespace Test.Droid
{
[Activity(Name = "test.droid.TestWebViewActivity", ScreenOrientation = ScreenOrientation.Portrait, ConfigurationChanges = ConfigChanges.KeyboardHidden | ConfigChanges.Orientation, Theme = "@style/CustomActivityTheme", AllowTaskReparenting = true)]
public classTestWebViewActivity : BaseActivity,View.IOnTouchListener
{
/// <summary>
/// key
/// </summary>
public const string ExtraPathKey = "path";
public const string FromWhere = "FromWhere";
private WebView webView;
private string url;
private int type;
private bool needClearHistory = false;
public enum FromType
{
Type1 = 0,
Type2 = 1,
Type3 = 2
}
protected override void OnCreate (Bundle savedInstanceState)
{
base.OnCreate (savedInstanceState);
SetContentView (Resource.Layout.LoginWebView);
ActionBar.SetDisplayHomeAsUpEnabled (false);
ActionBar.SetDisplayShowHomeEnabled (true);
ActionBar.SetDisplayUseLogoEnabled (true);
ActionBar.SetHomeButtonEnabled (true);
ActionBar.SetLogo (Resource.Drawable.MenuBackButton);
ActionBar.Title = "";
type = Intent.GetIntExtra (FromWhere, 3);
webView = FindViewById<WebView> (Resource.Id.TestWebView);
webView.Settings.JavaScriptEnabled = true;
JSBridge jsBridge =