From 76fca0e9a011eb36081e34b875a5d7399d4de3e9 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期二, 09 五月 2023 09:10:59 +0800 Subject: [PATCH] 优化登录界面键盘推动界面 --- HDL_ON/UI/UI1-Login/LoginPage.cs | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/HDL_ON/UI/UI1-Login/LoginPage.cs b/HDL_ON/UI/UI1-Login/LoginPage.cs index a9e2fdb..280000b 100644 --- a/HDL_ON/UI/UI1-Login/LoginPage.cs +++ b/HDL_ON/UI/UI1-Login/LoginPage.cs @@ -22,6 +22,13 @@ Application.HideSoftInput(); }; pm = new HttpServerRequest(); + + BaseActivity.HideKeyboardEvent = () => { + Application.RunOnMainThread(() => + { + this.Y = 0; + }); + }; } public override void RemoveFromParent() @@ -32,6 +39,11 @@ waitPage.RemoveFromParent(); waitPage = null; } + + + BaseActivity.HideKeyboardEvent = () => { + + }; base.RemoveFromParent(); @@ -190,6 +202,9 @@ UnSelectedImagePath = "Public/Logo-bg.png" }; bodyView.AddChidren(btnIcon_bg); + btnIcon_bg.MouseDownEventHandler += (sender, e) => { + Application.HideSoftInput(); + }; #if DEBUG btnIcon_bg.MouseUpEventHandler += (sender, e) => -- Gitblit v1.8.0