From b7591dba0127890e24eb1ae41e150a0ad8ee1a51 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 17 七月 2020 11:49:21 +0800 Subject: [PATCH] 2020-07-17 1.修复在大屏幕手机,部分界面图标会变形问题. --- Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs | 19 ++++++++++--------- 1 files changed, 10 insertions(+), 9 deletions(-) diff --git a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs index 4f4b0be..9e869be 100644 --- a/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs +++ b/Crabtree/SmartHome/UI/SimpleControl/Phone/Register/AccountModifyPassword.cs @@ -68,10 +68,11 @@ }; BodyView.AddChidren (ResetPasswrodView); + var viewX = (Application.GetRealWidth (640) - Application.GetMinRealAverage (500)) / 2; var curPasswordView = new FrameLayout () { - Width = Application.GetRealWidth (500), - Height = Application.GetRealHeight (90), - X = Application.GetRealWidth (70), + Width = Application.GetMinRealAverage (500), + Height = Application.GetMinRealAverage (90), + X = viewX, Y = Application.GetRealHeight (200), BackgroundImagePath = "Register/Register_Password_kuang.png", }; @@ -89,9 +90,9 @@ curPasswordView.AddChidren (etCurPassword); var newPasswordView = new FrameLayout () { - Width = Application.GetRealWidth (500), - Height = Application.GetRealHeight (90), - X = Application.GetRealWidth (70), + Width = Application.GetMinRealAverage (500), + Height = Application.GetMinRealAverage (90), + X = viewX, Y = curPasswordView.Bottom + Application.GetRealHeight (70), BackgroundImagePath = "Register/Register_Password_kuang.png", Radius = (uint)Application.GetRealHeight (0), @@ -110,9 +111,9 @@ newPasswordView.AddChidren (etNewPassword); var confrimFpasswordView = new FrameLayout () { - Width = Application.GetRealWidth (500), - Height = Application.GetRealHeight (90), - X = Application.GetRealWidth (70), + Width = Application.GetMinRealAverage (500), + Height = Application.GetMinRealAverage (90), + X = viewX, Y = newPasswordView.Bottom + Application.GetRealHeight (70), BackgroundImagePath = "Register/Register_Password_kuang.png", }; -- Gitblit v1.8.0