黄学彪
2020-12-17 9f326f4000847e6167d8166fa2f6a66f53cb3734
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
using System;
using Shared.Common;
 
namespace Shared.Phone.UserCenter.Abount
{
    public class SLAForm : EditorCommonForm
    {
        /// <summary>
        /// 画面显示(底层会固定调用此方法,借以完成画面创建)
        /// </summary>
        public void ShowForm()
        {
            //设置标题信息
            base.SetTitleText(Language.StringByID(R.MyInternationalizationString.SLA));
            //初始化中部控件
            this.InitMiddleFrame();
        }
 
        /// <summary>
        /// 初始化中部控件
        /// </summary>
        private void InitMiddleFrame()
        {
            var btnControl = new WebView();
            btnControl.Width = bodyFrameLayout.Width;
            btnControl.Height = bodyFrameLayout.Height;
            bodyFrameLayout.AddChidren(btnControl);
 
            //加载网址
            btnControl.LoadRequest("https://developer.hdlcontrol.com/HDLEvoyoPrivacyPolicy.html");
        }
    }
}