hxb
2022-09-02 8e17013e7322b0f4f265cda2da94f0fa053b4db8
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
using System;
using Shared;
namespace HDL_ON.UI.UI2
{
    public class H5Page : FrameLayout
    {
        public H5Page()
        {
        }
        public void LoadView()
        {
            WebView webView = new WebView();
            this.AddChidren(webView);
            webView.LoadFileUrl("h5/index");
 
            Button button = new Button { Width = 200, Height = 200, Text = "Hello", Y = 300, BackgroundColor = 0xFFFF0012 };
            button.MouseUpEventHandler += (s, e) =>
            {
                webView.CallJS("uniAppAndroidFun(" + "'hello world'" + ")");
            };
            this.AddChidren(button);
 
        }
    }
}