From 505effa88b17ce8c3c7ac5403b76d9e5d0cfc2a5 Mon Sep 17 00:00:00 2001 From: wxr <wxr@hdlchina.com.cn> Date: 星期一, 28 十月 2024 11:58:31 +0800 Subject: [PATCH] 谷歌版本问题修复 --- HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs | 33 +++++++++++++++++++++------------ 1 files changed, 21 insertions(+), 12 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs index 32531d7..640aad8 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/AddFunction/Iot_BrandListPage.cs @@ -26,22 +26,22 @@ public void LoadPage() { - - - new TopViewDiv(bodyView, Language.StringByID(StringId.Bind3thIotAccount)).LoadTopView(CSS_Color.MainBackgroundColor); + var topView = new TopViewDiv(bodyView, Language.StringByID(StringId.Bind3thIotAccount)); + topView.maginY = 10; + topView.LoadTopView(CSS_Color.MainBackgroundColor); bodyView.BackgroundColor = CSS_Color.MainBackgroundColor; bodyView.AddChidren(new Button { - Y = Application.GetRealHeight(64), + Y = Application.GetRealHeight(64+10), Height = Application.GetRealHeight(1), BackgroundColor = CSS_Color.DividingLineColor, }); Button btnTipText = new Button() { - Y = Application.GetRealHeight(80), + Y = Application.GetRealHeight(80+10), Width = Application.GetRealWidth(347), Height = Application.GetRealHeight(65), Gravity = Gravity.CenterHorizontal, @@ -55,11 +55,16 @@ TextAlignment = TextAlignment.CenterLeft, }; bodyView.AddChidren(btnTipText); - + if (Language.CurrentLanguage != "Chinese") + { + btnTipText.Text = "Synchronize your devices on the third-party platform to on Pro for control by binding the third-party platform account to the cloud connection"; + } + + contentView = new VerticalScrolViewLayout() { - Y = Application.GetRealHeight(150), - Height = Application.GetRealHeight(573), + Y = Application.GetRealHeight(150+10), + Height = Application.GetRealHeight(573-10), }; bodyView.AddChidren(contentView); @@ -76,7 +81,7 @@ } /// <summary> - /// 鑾峰彇缁戝畾鍒楄〃 + /// 鑾峰彇鍒楄〃 /// </summary> void GetBindList() { @@ -197,9 +202,8 @@ }; row.AddChidren(btnName); //涓嬭浇绗笁鏂瑰搧鐗宨con - ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authrBandIconUrl, btnIcon); - - btnName.MouseUpEventHandler = (sender, e) => { + ImageUtlis.Current.Load3tyBrandIconImages(brand.brandName, brand.authBrandIconUrl, btnIcon); + EventHandler<MouseEventArgs> eventHandler = (sender, e) => { if (brand.hasAuthorization) { Action unboundAction = () => @@ -231,6 +235,11 @@ MainPage.BasePageView.PageIndex = MainPage.BasePageView.ChildrenCount - 1; } }; + + btnRight.MouseUpEventHandler = eventHandler; + row.MouseUpEventHandler = eventHandler; + btnName.MouseUpEventHandler = eventHandler; + btnBindTip.MouseUpEventHandler = eventHandler; } } -- Gitblit v1.8.0