using System;
using HDL_ON.UI.CSS;
using Shared;
namespace HDL_ON.UI
{
///
/// WebViewDialog
/// 加载网页
///
public class WebViewDialog : Dialog
{
FrameLayout bodyView;
public WebViewDialog()
{
bodyView = new FrameLayout();
}
///
///
///
///
///
public void LoadPage(string titleStr, string url)
{
bodyView.BackgroundColor = CSS_Color.BackgroundColor;
this.AddChidren(bodyView);
new TopViewDiv(this, bodyView, titleStr).LoadTopView();
//WebView
var webView = new WebView() {
Y = Application.GetRealHeight(64),
Height = bodyView.Height - Application.GetRealHeight(64),
};
bodyView.AddChidren(webView);
//加载网址
webView.LoadRequest(url);
this.Show();
}
}
}