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